mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
Add selectable message box helper, use it, make login GUI error label selectable
This commit is contained in:
parent
e7e03c2b54
commit
b0ef429786
11 changed files with 88 additions and 44 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue