code format

This commit is contained in:
2022-12-14 14:14:33 +03:00
parent 09e5342956
commit cdb02fc9be
278 changed files with 15371 additions and 12176 deletions

View File

@@ -13,8 +13,7 @@ TouchButton::TouchButton(int id__, const QString & text): QToolButton(0) {
}
TouchButton::~TouchButton() {
}
TouchButton::~TouchButton() {}
void TouchButton::init() {
@@ -26,15 +25,15 @@ void TouchButton::init() {
animation.setDuration(350);
delay_blink = 500;
anim = auto_gray = true;
state_ = Gray;
state_ = Gray;
id_click = id_yes = id_no = -1;
timer = 0;
pal = palette();
col_yes = QColor(Qt::green);
col_no = QColor(Qt::red);
col_down = QColor(Qt::yellow);
timer = 0;
pal = palette();
col_yes = QColor(Qt::green);
col_no = QColor(Qt::red);
col_down = QColor(Qt::yellow);
col_gray = col_cur = col_up = pal.button().color();
col_dst = col_gray;
col_dst = col_gray;
}
@@ -81,7 +80,7 @@ void TouchButton::animateColor(const QColor & tc) {
void TouchButton::applyState(State s) {
if (s == state_) return;
State ps = state_;
state_ = s;
state_ = s;
emit stateChanged(state_, ps);
emit stateChangedID(id_click, state_, ps);
}