UI: 标题栏显示程序文件名(含路径)和 PID

This commit is contained in:
Calcitem 2019-12-13 00:36:22 +08:00
parent 670fdbcd39
commit fb8c91eed9
1 changed files with 2 additions and 1 deletions

View File

@ -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