#pragma once #include 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; };