changeset 187:869825bc8bc4

* Set hand cursor on clickable label
author Chris Cannam
date Mon, 20 Dec 2010 16:15:19 +0000
parents 6c15700f4103
children 07b908b4fa5f
files clickablelabel.h filestatuswidget.cpp
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/clickablelabel.h	Mon Dec 20 14:37:35 2010 +0000
+++ b/clickablelabel.h	Mon Dec 20 16:15:19 2010 +0000
@@ -50,7 +50,10 @@
 
     void setMouseUnderline(bool mu) {
 	m_mouseUnderline = mu;
-	if (mu) setTextFormat(Qt::RichText);
+	if (mu) {
+	    setTextFormat(Qt::RichText);
+	    setCursor(Qt::PointingHandCursor);
+	}
     }
 
 signals:
--- a/filestatuswidget.cpp	Mon Dec 20 14:37:35 2010 +0000
+++ b/filestatuswidget.cpp	Mon Dec 20 16:15:19 2010 +0000
@@ -51,7 +51,7 @@
     m_openButton->setFont(f);
     m_openButton->setMouseUnderline(true);
     connect(m_openButton, SIGNAL(clicked()), this, SLOT(openButtonClicked()));
-    layout->addWidget(m_openButton, row, 1, 1, 2);
+    layout->addWidget(m_openButton, row, 1, 1, 2, Qt::AlignLeft);
 
     ++row;
     layout->addWidget(new QLabel(tr("Remote:")), row, 0);