summaryrefslogtreecommitdiff
path: root/tizen/src/ui/menu/sdbhelperthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tizen/src/ui/menu/sdbhelperthread.cpp')
-rw-r--r--tizen/src/ui/menu/sdbhelperthread.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/tizen/src/ui/menu/sdbhelperthread.cpp b/tizen/src/ui/menu/sdbhelperthread.cpp
index 2c0389ec6f..dec4171205 100644
--- a/tizen/src/ui/menu/sdbhelperthread.cpp
+++ b/tizen/src/ui/menu/sdbhelperthread.cpp
@@ -28,6 +28,7 @@
*/
#include "sdbhelperthread.h"
+#include "mainwindow.h"
#include "sdbhelper.h"
#include "displaybase.h"
#include "resource/ui_strings.h"
@@ -82,24 +83,5 @@ void SdbHelperThread::handleErrorOccured(QString errString, int exitCode)
{
qDebug() << "exitcode: " << exitCode;
//FIXME: (sdb) cannot returns exit code like "no space left"
- showMsgBox(QMessageBox::Warning, MSG_SDB_FAILED_PROCESSING + errString);
-}
-
-QMessageBox *SdbHelperThread::showMsgBox(
- QMessageBox::Icon iconType, const QString &text,
- QMessageBox::StandardButtons buttons,
- QMessageBox::StandardButton defaultButton)
-{
- qWarning() << text;
-
- QMessageBox *msgBox = new QMessageBox(iconType,
- EMULATOR_TITLE, text, buttons, (QWidget *)parent->getMainWindow());
- if (defaultButton != QMessageBox::NoButton) {
- msgBox->setDefaultButton(defaultButton);
- }
- msgBox->setAttribute(Qt::WA_DeleteOnClose);
- msgBox->setModal(false);
- msgBox->show(); /* non-blocking */
-
- return msgBox;
+ ((MainWindow *)parent->getMainWindow())->showMsgBox(QMessageBox::Warning, MSG_SDB_FAILED_PROCESSING + errString);
}