创建文件夹

This commit is contained in:
2024-04-22 22:11:45 +08:00
commit 5110628c24
9 changed files with 869 additions and 0 deletions

20
main.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "mainwindow.h"
#include <QApplication>
#include <QFile>
#include <QDir>
#include <QMessageBox>
#include <QObject>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// 风险提示
if(!QFile::exists(QDir::homePath() + "/.config/gxde-kernel-manager/read_already")) {
QMessageBox::warning(NULL, QObject::tr("Waring"), QObject::tr("It is danger because it may make your system unboot.\nPress 'OK' to countinue"));
}
MainWindow w;
w.show();
return a.exec();
}