3 #include <widgets/tglabel.h>
12 Q_PROPERTY(
Tg::Color activeTextColor READ activeTextColor WRITE setActiveTextColor NOTIFY activeTextColorChanged)
13 Q_PROPERTY(
Tg::Color activeBackgroundColor READ activeBackgroundColor WRITE setActiveBackgroundColor NOTIFY activeBackgroundColorChanged)
15 Q_PROPERTY(
Tg::Color inactiveTextColor READ inactiveTextColor WRITE setInactiveTextColor NOTIFY inactiveTextColorChanged)
16 Q_PROPERTY(
Tg::Color inactiveBackgroundColor READ inactiveBackgroundColor WRITE setInactiveBackgroundColor NOTIFY inactiveBackgroundColorChanged)
18 Q_PROPERTY(
Tg::Color pressedTextColor READ pressedTextColor WRITE setPressedTextColor NOTIFY pressedTextColorChanged)
19 Q_PROPERTY(
Tg::Color pressedBackgroundColor READ pressedBackgroundColor WRITE setPressedBackgroundColor NOTIFY pressedBackgroundColorChanged)
24 Button(
const QString &text = QString(),
Widget *parent =
nullptr);
30 Tg::Color inactiveBackgroundColor()
const;
37 void setActiveTextColor(
const Tg::Color &activeTextColor);
38 void setActiveBackgroundColor(
const Tg::Color &activeBackgroundColor);
39 void setInactiveTextColor(
const Tg::Color &inactiveTextColor);
40 void setInactiveBackgroundColor(
const Tg::Color &inactiveBackgroundColor);
41 void setPressedTextColor(
const Tg::Color &pressedTextColor);
42 void setPressedBackgroundColor(
const Tg::Color &pressedBackgroundColor);
47 void activeTextColorChanged(
const Tg::Color &activeTextColor)
const;
48 void activeBackgroundColorChanged(
const Tg::Color &activeBackgroundColor)
const;
49 void inactiveTextColorChanged(
const Tg::Color &inactiveTextColor)
const;
50 void inactiveBackgroundColorChanged(
const Tg::Color &inactiveBackgroundColor)
const;
51 void pressedTextColorChanged(
const Tg::Color &pressedTextColor)
const;
52 void pressedBackgroundColorChanged(
const Tg::Color &pressedBackgroundColor)
const;
59 void onButtonPressTimeout();
60 void onHasFocusChanged();
63 QTimer _buttonPressTimer;