diff options
-rw-r--r-- | client/expandbutton.cc | 17 | ||||
-rw-r--r-- | client/expandbutton.h | 2 | ||||
-rw-r--r-- | client/macrodrawer.cc | 2 |
3 files changed, 3 insertions, 18 deletions
diff --git a/client/expandbutton.cc b/client/expandbutton.cc index 13e44bf..124661a 100644 --- a/client/expandbutton.cc +++ b/client/expandbutton.cc @@ -31,19 +31,6 @@ ExpandButton::ExpandButton(QWidget * parent) : QPushButton(parent) { - -} - -void ExpandButton::focusInEvent(QFocusEvent * event) -{ - if (event) { - } - setStyleSheet("background-color: blue"); -} - -void ExpandButton::focusOutEvent(QFocusEvent * event) -{ - if (event) { - } - setStyleSheet("background-color:"); + setStyleSheet(":focus{ background-color: #2199e8; }" + ":hover{ background-color: #2199e8; }"); } diff --git a/client/expandbutton.h b/client/expandbutton.h index 85d0ce4..f95f338 100644 --- a/client/expandbutton.h +++ b/client/expandbutton.h @@ -43,8 +43,6 @@ public slots: signals: private: - void focusInEvent(QFocusEvent * event); - void focusOutEvent(QFocusEvent * event); }; #endif/*__PRACRO_EXPANDBUTTON_H__*/ diff --git a/client/macrodrawer.cc b/client/macrodrawer.cc index 10dbea0..648f0a6 100644 --- a/client/macrodrawer.cc +++ b/client/macrodrawer.cc @@ -112,7 +112,7 @@ void MacroDrawer::activationChange(bool active) // Clear padlock icon on button if(button) { button->setIcon(QPixmap()); - button->setText("±"); + button->setText(""); } } |