UI: 标题栏显示程序文件名(含路径)和 PID
This commit is contained in:
parent
670fdbcd39
commit
fb8c91eed9
|
@ -26,8 +26,9 @@
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
MillGameWindow w;
|
||||
MillGameWindow w;
|
||||
w.show();
|
||||
w.setWindowTitle(QCoreApplication::applicationFilePath() + " (" + QString::number(QCoreApplication::applicationPid()) + ")");
|
||||
#ifndef _DEBUG
|
||||
w.move((QApplication::desktop()->width() - w.width()) / 4, (QApplication::desktop()->height() - w.height()) / 2);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue