From 26ed6eb9f654671843cafc88d0682288e2c2b491 Mon Sep 17 00:00:00 2001 From: Lars Bisballe Jensen Date: Tue, 8 Nov 2011 11:19:36 +0100 Subject: template button now has focus and hover color --- client/template.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/template.cc b/client/template.cc index b3b1d5b..56e5565 100644 --- a/client/template.cc +++ b/client/template.cc @@ -52,6 +52,8 @@ Template::Template(NetCom &n) l->addSpacing(10); QPushButton *btn = new QPushButton(tr("Open")); + btn->setStyleSheet(":focus{ background-color: #2199e8; }" + ":hover{ background-color: #2199e8; }"); btn->setIcon(QIcon(":icons/open.png")); btn->setFixedSize(200,48); l->addWidget(btn); -- cgit v1.2.3