mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Use CustomMessageBox::selectable
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
@ -21,7 +21,8 @@ QMessageBox* selectable(QWidget* parent,
|
||||
const QString& text,
|
||||
QMessageBox::Icon icon,
|
||||
QMessageBox::StandardButtons buttons,
|
||||
QMessageBox::StandardButton defaultButton)
|
||||
QMessageBox::StandardButton defaultButton,
|
||||
QCheckBox* checkBox)
|
||||
{
|
||||
QMessageBox* messageBox = new QMessageBox(parent);
|
||||
messageBox->setWindowTitle(title);
|
||||
@ -31,6 +32,8 @@ QMessageBox* selectable(QWidget* parent,
|
||||
messageBox->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||
messageBox->setIcon(icon);
|
||||
messageBox->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
if (checkBox)
|
||||
messageBox->setCheckBox(checkBox);
|
||||
|
||||
return messageBox;
|
||||
}
|
||||
|
Reference in New Issue
Block a user