Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
#include <QLayout>
#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);
}