diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-06-02 15:14:12 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-06-03 10:51:51 +0200 |
commit | 8addcf763bc0644de1f3548a2a65876aed65a7c9 (patch) | |
tree | 12f2735f9e757d415f5200000de17b3231b9c053 /src/libs/installer/messageboxhandler.cpp | |
parent | 3aaca15ef8a8dd13ba877821a3683ba86241be9b (diff) |
Replace script with js engine.
Change-Id: Ic9c88e27dca1e936ba09a3776df3df7ec166c606
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/installer/messageboxhandler.cpp')
-rw-r--r-- | src/libs/installer/messageboxhandler.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libs/installer/messageboxhandler.cpp b/src/libs/installer/messageboxhandler.cpp index 09aa43c1d..4b5380754 100644 --- a/src/libs/installer/messageboxhandler.cpp +++ b/src/libs/installer/messageboxhandler.cpp @@ -231,25 +231,29 @@ QMessageBox::StandardButton MessageBoxHandler::warning(QWidget *parent, const QS int MessageBoxHandler::critical(const QString &identifier, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton button) const { - return showMessageBox(criticalType, currentBestSuitParent(), identifier, title, text, buttons, button); + return showMessageBox(criticalType, currentBestSuitParent(), identifier, title, text, + QMessageBox::StandardButtons(buttons), QMessageBox::StandardButton(button)); } int MessageBoxHandler::information(const QString &identifier, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton button) const { - return showMessageBox(informationType, currentBestSuitParent(), identifier, title, text, buttons, button); + return showMessageBox(informationType, currentBestSuitParent(), identifier, title, text, + QMessageBox::StandardButtons(buttons), QMessageBox::StandardButton(button)); } int MessageBoxHandler::question(const QString &identifier, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton button) const { - return showMessageBox(questionType, currentBestSuitParent(), identifier, title, text, buttons, button); + return showMessageBox(questionType, currentBestSuitParent(), identifier, title, text, + QMessageBox::StandardButtons(buttons), QMessageBox::StandardButton(button)); } int MessageBoxHandler::warning(const QString &identifier, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton button) const { - return showMessageBox(warningType, currentBestSuitParent(), identifier, title, text, buttons, button); + return showMessageBox(warningType, currentBestSuitParent(), identifier, title, text, + QMessageBox::StandardButtons(buttons), QMessageBox::StandardButton(button)); } // -- private |