mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 17:09:25 +00:00
Add selectable message box helper, use it, make login GUI error label selectable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user