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();
}
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)
/* scene */
QGraphicsScene* skinScene = new QGraphicsScene(this);
- //skinScene->setBackgroundBrush(Qt::black);
+ skinScene->setBackgroundBrush(Qt::black);
/* view */
skinView = new SkinView(skinScene, this);
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);
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) {
action->setChecked(true);
/* ============== */
- addSeparator();
-
/* = Controller menu = */
QMenu *controllerMenu = NULL;
if (win->uiInfo->controllerList.isEmpty() == false) {
}
}
+ addSeparator();
+
/* = Advanced menu = */
QMenu *advancedMenu = addMenu(QIcon(QPixmap(":/icons/advanced.png")), "Ad&vanced");
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();
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();
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();
hoverColor = Qt::white; // TODO:
pen.setColor(Qt::transparent);
- setToolTip(key->tooltip);
+ setToolTip("<span style=background-color:white><font color=black>"
+ + key->tooltip + "</font></span>");
setAcceptHoverEvents(true);
}