#include #include "fullline.h" #include "ui_fullline.h" FullLine::FullLine(int lineIndex, int height, int charcount, QWidget *parent) : QWidget(parent) , m_ui(new Ui::FullLine) { m_ui->setupUi(this); m_ui->props->setLineIndex(lineIndex); m_ui->ledLine->setCharCountAndHeight(charcount, height); connect(m_ui->props, &Props::flashTimeChanged, m_ui->ledLine, &QLedLine::setFlashing); connect(m_ui->props, &Props::colorChanged, m_ui->ledLine, &QLedLine::setColor); connect(m_ui->props, &Props::textChanged, m_ui->ledLine, &QLedLine::setText); connect(m_ui->props, &Props::showText, m_ui->ledLine, &QLedLine::setTextVisible); } FullLine::~FullLine() { delete m_ui; } void FullLine::setCharCount(int count) { m_ui->ledLine->setCharCount(count); } int FullLine::charCount() const { return m_ui->ledLine->charCount(); } void FullLine::setHeight(int height) { m_ui->ledLine->setHeight(height); }