ui: followed mandatory design guide
authorGiWoong Kim <giwoong.kim@samsung.com>
Fri, 7 Aug 2015 06:48:34 +0000 (15:48 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Sun, 9 Aug 2015 08:29:23 +0000 (17:29 +0900)
- add minimize button to Screen Shot window
- replace close message box's icon and buttons

Change-Id: I9493ebfae843f50518ac508e42cdc1856a90a3f4
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/ui/mainwindow.cpp
tizen/src/ui/menu/contextmenu.cpp
tizen/src/ui/menu/screenshotdialog.cpp

index 72e228f33559970301bc0fc6cca781114e395b83..e7372835149381b68614c1bd47ca61f7f8bc31cb 100644 (file)
@@ -519,7 +519,7 @@ MainWindow::~MainWindow()
 /* override */
 void MainWindow::closeEvent(QCloseEvent *event)
 {
-    int result = QMessageBox::warning(this, EMULATOR_TITLE,
+    int result = QMessageBox::question(this, EMULATOR_TITLE,
         MSG_CLOSE_POPUP, QMessageBox::Yes | QMessageBox::Default, QMessageBox::No);
 
     if (result == QMessageBox::Yes) {
index f2cba97342a2e379c0f6572fbfbbe2a22335d8d9..ffd591efd4813ee23cf57514fd6e85710caecd1b 100644 (file)
@@ -723,7 +723,7 @@ void ContextMenu::slotForceClose()
 
     QMessageBox *msgBox = showMsgBox(QMessageBox::Question,
         MSG_FORCE_CLOSE_POPUP,
-        QMessageBox::Cancel | QMessageBox::Ok, QMessageBox::Cancel);
+        QMessageBox::No | QMessageBox::Yes, QMessageBox::No);
 
     connect(msgBox, SIGNAL(buttonClicked(QAbstractButton *)),
         this, SLOT(slotForceCloseSelected(QAbstractButton *)));
index cda58fa85993c4f1329b2cb8d0a70d379df647d4..36636a818e3b3bd17b6722d8e6468a9afc845930 100644 (file)
@@ -36,7 +36,7 @@
 #include "mainwindow.h"
 
 ScreenShotDialog::ScreenShotDialog(QWidget *parent) :
-    QDialog(parent)
+    QDialog(parent, Qt::Window)
 {
     this->win = (MainWindow *)parent;
     this->ratio = 1;