diff options
author | Sky <git@bunnies.cc> | 2013-10-29 12:40:09 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-10-29 12:40:09 +0000 |
commit | b0ef429786bef64799d43f1ac502c139bbde8dc5 (patch) | |
tree | b419161990d382edd0033b097880e044de4f75c7 /gui/LabeledToolButton.cpp | |
parent | e7e03c2b542b1cceda63628dd7ca6fa9c875cfd2 (diff) | |
download | MultiMC-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.cpp | 4 |
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 +} |