diff --git a/qt/squeezelabel.cc b/qt/squeezelabel.cc index cb185ed99..e637f2fdd 100644 --- a/qt/squeezelabel.cc +++ b/qt/squeezelabel.cc @@ -41,12 +41,20 @@ #include "squeezelabel.h" +void +SqueezeLabel::init() +{ + setTextInteractionFlags( Qt::TextSelectableByMouse ); +} + SqueezeLabel::SqueezeLabel(const QString& text, QWidget *parent) : QLabel(text, parent) { + init(); } SqueezeLabel::SqueezeLabel(QWidget *parent) : QLabel(parent) { + init(); } void SqueezeLabel::paintEvent(QPaintEvent *event) diff --git a/qt/squeezelabel.h b/qt/squeezelabel.h index bb266e9eb..9374d8d99 100644 --- a/qt/squeezelabel.h +++ b/qt/squeezelabel.h @@ -53,6 +53,7 @@ public: SqueezeLabel(const QString& text, QWidget *parent = 0); protected: + void init(); void paintEvent(QPaintEvent *event); };