2,新增“Apps”; 3,新增“Common”; 4,新增“FileList”; 5,新增“MediaX”; 6,新增“OpenSource”; 7,新增“Samples”; 8,新增“SoftwareBusinessLines”.
22 lines
428 B
C++
22 lines
428 B
C++
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
#include "LogIn/LoginDialog.h"
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
LoginDialog dlg;
|
|
if (dlg.exec() ==QDialog::Accepted)
|
|
{
|
|
MainWindow w;
|
|
w.move((a.desktop()->width() - w.width()) / 2, (a.desktop()->height() - w.height()) / 2);
|
|
w.show();
|
|
return a.exec();
|
|
}
|
|
else
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
}
|