mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-02 16:32:55 +00:00
Qt: Use ModalMessageBox everywhere
This commit is contained in:
parent
d1cb79f644
commit
70da86f1c3
31 changed files with 244 additions and 298 deletions
|
@ -8,12 +8,12 @@
|
|||
#include <QDialogButtonBox>
|
||||
#include <QGridLayout>
|
||||
#include <QHeaderView>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include <QTableWidget>
|
||||
#include <QUrl>
|
||||
|
||||
#include "Common/FileUtil.h"
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
#include "UICommon/ResourcePack/Manager.h"
|
||||
|
||||
ResourcePackManager::ResourcePackManager(QWidget* widget) : QDialog(widget)
|
||||
|
@ -196,7 +196,7 @@ void ResourcePackManager::Install()
|
|||
|
||||
if (!success)
|
||||
{
|
||||
QMessageBox::critical(
|
||||
ModalMessageBox::critical(
|
||||
this, tr("Error"),
|
||||
tr("Failed to install pack: %1").arg(QString::fromStdString(item.GetError())));
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ void ResourcePackManager::Uninstall()
|
|||
|
||||
if (!success)
|
||||
{
|
||||
QMessageBox::critical(
|
||||
ModalMessageBox::critical(
|
||||
this, tr("Error"),
|
||||
tr("Failed to uninstall pack: %1").arg(QString::fromStdString(item.GetError())));
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ void ResourcePackManager::Remove()
|
|||
if (items.empty())
|
||||
return;
|
||||
|
||||
QMessageBox box(this);
|
||||
ModalMessageBox box(this);
|
||||
box.setWindowTitle(tr("Confirmation"));
|
||||
box.setText(tr("Are you sure you want to delete this pack?"));
|
||||
box.setIcon(QMessageBox::Warning);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue