Mercurial > hg > easyhg
comparison clickablelabel.h @ 187:869825bc8bc4
* Set hand cursor on clickable label
author | Chris Cannam |
---|---|
date | Mon, 20 Dec 2010 16:15:19 +0000 |
parents | 6c15700f4103 |
children | 8fd71f570884 |
comparison
equal
deleted
inserted
replaced
186:6c15700f4103 | 187:869825bc8bc4 |
---|---|
48 return m_mouseUnderline; | 48 return m_mouseUnderline; |
49 } | 49 } |
50 | 50 |
51 void setMouseUnderline(bool mu) { | 51 void setMouseUnderline(bool mu) { |
52 m_mouseUnderline = mu; | 52 m_mouseUnderline = mu; |
53 if (mu) setTextFormat(Qt::RichText); | 53 if (mu) { |
54 setTextFormat(Qt::RichText); | |
55 setCursor(Qt::PointingHandCursor); | |
56 } | |
54 } | 57 } |
55 | 58 |
56 signals: | 59 signals: |
57 void clicked(); | 60 void clicked(); |
58 | 61 |