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/CustomMessageBox.h | |
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/CustomMessageBox.h')
-rw-r--r-- | gui/CustomMessageBox.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/CustomMessageBox.h b/gui/CustomMessageBox.h new file mode 100644 index 00000000..145651ec --- /dev/null +++ b/gui/CustomMessageBox.h @@ -0,0 +1,11 @@ +#pragma once + +#include <QMessageBox> + +namespace CustomMessageBox +{ + QMessageBox *selectable(QWidget *parent, const QString &title, const QString &text, + QMessageBox::Icon icon = QMessageBox::NoIcon, + QMessageBox::StandardButtons buttons = QMessageBox::Ok, + QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); +} |