You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
787 B
C++
30 lines
787 B
C++
#include "Report.h"
|
|
#include <QtWidgets/QApplication>
|
|
#include "stationdb.h"
|
|
#include "qcheckdatadlg.h"
|
|
|
|
#pragma execution_character_set("utf-8")
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
QApplication a(argc, argv);
|
|
QString strPath = QCoreApplication::applicationDirPath();
|
|
QString DBFilePath = strPath + "\\DBFiles";
|
|
|
|
StationDB* m_db = new StationDB(DBFilePath + "\\AntMan.db");
|
|
m_db->InitDatabase();
|
|
|
|
QCheckDataDlg dlg;
|
|
dlg.setWindowIcon(QIcon(":/Report/Resources/app2.png"));
|
|
dlg.setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
|
|
dlg.setDbPtr(m_db);
|
|
QStringList strList;
|
|
strList<< "¹¤Î»1" << "¹¤Î»2";
|
|
dlg.setStationNames(strList);
|
|
dlg.show();
|
|
int ret = a.exec();
|
|
delete m_db;
|
|
m_db = nullptr;
|
|
return ret;
|
|
}
|