summaryrefslogtreecommitdiffstats
path: root/gui/LabeledToolButton.cpp
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-29 12:40:09 +0000
committerSky <git@bunnies.cc>2013-10-29 12:40:09 +0000
commitb0ef429786bef64799d43f1ac502c139bbde8dc5 (patch)
treeb419161990d382edd0033b097880e044de4f75c7 /gui/LabeledToolButton.cpp
parente7e03c2b542b1cceda63628dd7ca6fa9c875cfd2 (diff)
downloadMultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar
MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.gz
MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.lz
MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.xz
MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.zip
Add selectable message box helper, use it, make login GUI error label selectable
Diffstat (limited to 'gui/LabeledToolButton.cpp')
-rw-r--r--gui/LabeledToolButton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/LabeledToolButton.cpp b/gui/LabeledToolButton.cpp
index f1e54696..677476b9 100644
--- a/gui/LabeledToolButton.cpp
+++ b/gui/LabeledToolButton.cpp
@@ -20,7 +20,7 @@ LabeledToolButton::LabeledToolButton(QWidget * parent)
m_label->setWordWrap(true);
m_label->setMouseTracking(false);
m_label->setAlignment(Qt::AlignCenter);
- m_label->setTextInteractionFlags(Qt::NoTextInteraction);
+ m_label->setTextInteractionFlags(Qt::TextSelectableByMouse);
// somehow, this makes word wrap work in the QLabel. yay.
m_label->setMinimumWidth(100);
}
@@ -69,4 +69,4 @@ void LabeledToolButton::resizeEvent(QResizeEvent * event)
{
m_label->setGeometry(QRect(4, 4, width()-8, height()-8));
QWidget::resizeEvent(event);
-} \ No newline at end of file
+}