Files
qt5-legatus-legacy/Lts/Tools/QLedLine/Test/props.h
T
2026-08-13 18:33:10 +02:00

35 lines
615 B
C++
Executable File

#pragma once
#include <QWidget>
namespace Ui {
class Props;
}
class Props : public QWidget
{
Q_OBJECT
public:
explicit Props(QWidget *parent = nullptr);
~Props();
int lineIndex() const;
void setLineIndex(int lineIndex);
QString inputText() const;
void setInputText(const QString &inputText);
signals:
void textChanged(const QString& newText);
void showText(bool visible);
void flashTimeChanged(int msecs);
void colorChanged(const QColor &newColor);
private slots:
void onPbColorClicked();
private:
int m_lineIndex = 0;
QColor m_color;
Ui::Props *m_ui = nullptr;
};