mirror of
https://github.com/MountCloud/FireDog.git
synced 2026-10-17 04:31:05 +08:00
33 lines
660 B
C++
33 lines
660 B
C++
#include "FireDogEditor.h"
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
|
|
//这个方法设置主题行不通,智能防盗mainwindow的构造函数里
|
|
//void initQss()
|
|
//{
|
|
// QFile file(":/qss/css/qss.css");
|
|
// if (!file.open(QIODevice::ReadOnly))
|
|
// exit(0);
|
|
//
|
|
// QTextStream in(&file);
|
|
// QString css = in.readAll();
|
|
// qApp->setStyleSheet(css);
|
|
// qApp->setFont(QFont("微软雅黑", 9));
|
|
//
|
|
// return;
|
|
//}
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
int nExitCode = 0;
|
|
do {
|
|
QApplication a(argc, argv);
|
|
FireDogEditor w;
|
|
w.show();
|
|
nExitCode = a.exec();
|
|
} while (nExitCode == EXIT_CODE_REBOOT);
|
|
return nExitCode;
|
|
}
|