- 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>
/* 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) {
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 *)));
#include "mainwindow.h"
ScreenShotDialog::ScreenShotDialog(QWidget *parent) :
- QDialog(parent)
+ QDialog(parent, Qt::Window)
{
this->win = (MainWindow *)parent;
this->ratio = 1;