diff selectablelabel.cpp @ 72:121cb1032717

* Bit more work on Open dialog
author Chris Cannam
date Thu, 18 Nov 2010 17:36:53 +0000
parents 6d5a5571caec
children 8fd71f570884
line wrap: on
line diff
--- a/selectablelabel.cpp	Thu Nov 18 15:29:48 2010 +0000
+++ b/selectablelabel.cpp	Thu Nov 18 17:36:53 2010 +0000
@@ -27,8 +27,6 @@
     m_selected(false)
 {
     setTextFormat(Qt::RichText);
-//    setLineWidth(2);
-//    setFixedWidth(480);
     setupStyle();
     setOpenExternalLinks(true);
 }
@@ -70,20 +68,12 @@
 
     if (m_selected) {
         setStyleSheet
-            (QString("QLabel:hover { background: %1; color: %3; } "
-                     "QLabel:!hover { background: %2; color: %3 } "
-                     "QLabel { padding: 7px }")
-             .arg(palette.highlight().color().name())
-             .arg(palette.highlight().color().name())
-             .arg(palette.text().color().name()));
+            (QString("QLabel { background: %1; border: 1px solid %2; padding: 7px } ")
+             .arg(palette.light().color().name())
+             .arg(palette.dark().color().name()));
     } else {
         setStyleSheet
-            (QString("QLabel:hover { background: %1; color: %3; } "
-                     "QLabel:!hover { background: %2; color: %3 } "
-                     "QLabel { padding: 7px }")
-             .arg(palette.button().color().name())
-             .arg(palette.light().color().name())
-             .arg(palette.text().color().name()));
+            (QString("QLabel { border: 0; padding: 7px } "));
     }
 }