From 72f0e057dd754e6d9ca0f5e587e88c4ac59e61b2 Mon Sep 17 00:00:00 2001 From: Lars Bisballe Jensen Date: Fri, 14 Oct 2011 12:16:04 +0200 Subject: Removed text from expand button and added hover and focus styles --- client/expandbutton.cc | 17 ++--------------- client/expandbutton.h | 2 -- client/macrodrawer.cc | 2 +- 3 files changed, 3 insertions(+), 18 deletions(-) (limited to 'client') 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(""); } } -- cgit v1.2.3