summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorLars Bisballe Jensen <larsbisballe@gmail.com>2011-10-14 12:16:04 +0200
committerLars Bisballe Jensen <larsbisballe@gmail.com>2011-10-14 12:16:04 +0200
commit72f0e057dd754e6d9ca0f5e587e88c4ac59e61b2 (patch)
treebbfb5b2292bebb98d25ca03f3af0bf9ea9fcee53 /client
parentfe036e4c0f3639dff146d0af3a17234282e38dea (diff)
Removed text from expand button and added hover and focus styles
Diffstat (limited to 'client')
-rw-r--r--client/expandbutton.cc17
-rw-r--r--client/expandbutton.h2
-rw-r--r--client/macrodrawer.cc2
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("");
}
}