From: GiWoong Kim Date: Wed, 20 Aug 2014 05:23:58 +0000 (+0900) Subject: menu: disable Always on Top menu X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71c08534072acf4e66026e03e05c68943069e836;p=sdk%2Femulator%2Fqemu.git menu: disable Always on Top menu Change-Id: I088273f7e9faa5eecf8e509efc806b6b5725d250 Signed-off-by: GiWoong Kim --- diff --git a/tizen/src/display/qt5_supplement.cpp b/tizen/src/display/qt5_supplement.cpp index 10b5f1918f..12e9ad4188 100644 --- a/tizen/src/display/qt5_supplement.cpp +++ b/tizen/src/display/qt5_supplement.cpp @@ -75,7 +75,7 @@ void qt5_skin_init(void) uiInfo->resolution.setHeight(get_emul_resolution_height()); uiInfo->basePort = get_emul_vm_base_port() + 1; - uiInfo->skinPath = get_emul_skin_path(); + uiInfo->skinPath = QDir(get_emul_skin_path()).canonicalPath(); if (uiInfo->skinPath.endsWith(QDir::separator()) == false) { uiInfo->skinPath += QDir::separator(); } @@ -122,9 +122,10 @@ void qt5_skin_init(void) void qt5_destroy() { qDebug("qt5 destroy"); + + /* TODO : destroy mainwindow and qt5App, close controller */ + delete uiInfo; - mainwindow->closeController(); - /* TODO : destroy mainwindow and qt5App */ } void qt5_early_prepare(void) diff --git a/tizen/src/ui/mainwindow.cpp b/tizen/src/ui/mainwindow.cpp index 6614b83323..f13d6c98ce 100644 --- a/tizen/src/ui/mainwindow.cpp +++ b/tizen/src/ui/mainwindow.cpp @@ -98,7 +98,7 @@ MainWindow::MainWindow(UIInformation *uiInfo, QWidget *parent) : /* scene */ QGraphicsScene* skinScene = new QGraphicsScene(this); - //skinScene->setBackgroundBrush(Qt::black); + skinScene->setBackgroundBrush(Qt::black); /* view */ skinView = new SkinView(skinScene, this); @@ -292,7 +292,7 @@ MainWindow::~MainWindow() void MainWindow::closeEvent(QCloseEvent *event) { int r = QMessageBox::warning(this, - "Warning!", + "Emulator", "Do you really want to quit this program?", QMessageBox::Yes | QMessageBox::Default, QMessageBox::No); diff --git a/tizen/src/ui/menu/contextmenu.cpp b/tizen/src/ui/menu/contextmenu.cpp index 61772b7c8e..ecba0a3d9d 100644 --- a/tizen/src/ui/menu/contextmenu.cpp +++ b/tizen/src/ui/menu/contextmenu.cpp @@ -47,10 +47,12 @@ ContextMenu::ContextMenu(QWidget *parent) : addSeparator(); +#if 0 /* Always On Top menu */ action = addAction("&Always on Top"); action->setCheckable(true); connect(action, SIGNAL(triggered(bool)), this, SLOT(slotTopMost(bool))); +#endif /* = Rotate menu = */ if (win->uiInfo->formList.count() > 1) { @@ -124,8 +126,6 @@ ContextMenu::ContextMenu(QWidget *parent) : action->setChecked(true); /* ============== */ - addSeparator(); - /* = Controller menu = */ QMenu *controllerMenu = NULL; if (win->uiInfo->controllerList.isEmpty() == false) { @@ -143,6 +143,8 @@ ContextMenu::ContextMenu(QWidget *parent) : } } + addSeparator(); + /* = Advanced menu = */ QMenu *advancedMenu = addMenu(QIcon(QPixmap(":/icons/advanced.png")), "Ad&vanced"); @@ -240,7 +242,7 @@ void ContextMenu::slotShell() QString msg = "SDB is not ready.\nPlease wait until the emulator is completely boot up."; QMessageBox *msgBox = new QMessageBox(); msgBox->setAttribute(Qt::WA_DeleteOnClose); - msgBox->setWindowTitle("Info"); + msgBox->setWindowTitle("Emulator"); msgBox->setText(msg); msgBox->setModal(false); msgBox->show(); @@ -266,7 +268,7 @@ void ContextMenu::slotShell() QString msg = "SDB file does not exist : " + fileInfo.absoluteFilePath(); QMessageBox *msgBox = new QMessageBox(); msgBox->setAttribute(Qt::WA_DeleteOnClose); - msgBox->setWindowTitle("Error"); + msgBox->setWindowTitle("Emulator"); msgBox->setText(msg); msgBox->setModal(false); msgBox->show(); @@ -297,7 +299,7 @@ void ContextMenu::slotShell() QString msg = "Fail to open Shell : " + error; QMessageBox *msgBox = new QMessageBox(); msgBox->setAttribute(Qt::WA_DeleteOnClose); - msgBox->setWindowTitle("Fail"); + msgBox->setWindowTitle("Emulator"); msgBox->setText(msg); msgBox->setModal(false); msgBox->show(); diff --git a/tizen/src/ui/skinkeyitem.cpp b/tizen/src/ui/skinkeyitem.cpp index cfc93cf75a..5afe0fc98f 100644 --- a/tizen/src/ui/skinkeyitem.cpp +++ b/tizen/src/ui/skinkeyitem.cpp @@ -38,7 +38,8 @@ SkinKeyItem::SkinKeyItem(QImage pressedImg, HardwareKey *key, QGraphicsItem *par hoverColor = Qt::white; // TODO: pen.setColor(Qt::transparent); - setToolTip(key->tooltip); + setToolTip("" + + key->tooltip + ""); setAcceptHoverEvents(true); }