mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-13 18:04:32 +00:00
Qt: Add QtUtils::AsyncMessageBox()
This commit is contained in:
@@ -298,6 +298,13 @@ QMessageBox* QtUtils::NewMessageBox(QWidget* parent, QMessageBox::Icon icon, con
|
||||
return msgbox;
|
||||
}
|
||||
|
||||
void QtUtils::AsyncMessageBox(QWidget* parent, QMessageBox::Icon icon, const QString& title, const QString& text,
|
||||
QMessageBox::StandardButtons button /*= QMessageBox::Ok*/)
|
||||
{
|
||||
QMessageBox* msgbox = NewMessageBox(parent, icon, title, text, button, QMessageBox::NoButton, true);
|
||||
msgbox->open();
|
||||
}
|
||||
|
||||
void QtUtils::StylePopupMenu(QMenu* menu)
|
||||
{
|
||||
if (QtHost::HasGlobalStylesheet())
|
||||
|
||||
@@ -129,6 +129,8 @@ QMessageBox::StandardButton MessageBoxIcon(QWidget* parent, QMessageBox::Icon ic
|
||||
QMessageBox* NewMessageBox(QWidget* parent, QMessageBox::Icon icon, const QString& title, const QString& text,
|
||||
QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton,
|
||||
bool delete_on_close = true);
|
||||
void AsyncMessageBox(QWidget* parent, QMessageBox::Icon icon, const QString& title, const QString& text,
|
||||
QMessageBox::StandardButtons button = QMessageBox::Ok);
|
||||
|
||||
/// Styles a popup menu for the current theme.
|
||||
void StylePopupMenu(QMenu* menu);
|
||||
|
||||
Reference in New Issue
Block a user