parent
eec33160fb
commit
03069e2bf2
|
@ -28,7 +28,9 @@ int main(int argc, char *argv[])
|
|||
QApplication a(argc, argv);
|
||||
MillGameWindow w;
|
||||
w.show();
|
||||
#ifndef _DEBUG
|
||||
w.move((QApplication::desktop()->width() - w.width()) / 4, (QApplication::desktop()->height() - w.height()) / 2);
|
||||
#endif
|
||||
|
||||
return QApplication::exec();
|
||||
}
|
||||
|
|
|
@ -97,6 +97,11 @@ MillGameWindow::MillGameWindow(QWidget * parent) :
|
|||
int unith = (deskTopRect.height() - height()) / 2;
|
||||
this->move(unitw, unith);
|
||||
|
||||
#ifdef _DEBUG
|
||||
this->setFixedWidth(width());
|
||||
this->setFixedHeight(height());
|
||||
#endif
|
||||
|
||||
#ifdef MOBILE_APP_UI
|
||||
// 隐藏菜单栏、工具栏、状态栏等
|
||||
ui.menuBar->setVisible(false);
|
||||
|
|
Loading…
Reference in New Issue