-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (18 loc) · 872 Bytes
/
main.cpp
File metadata and controls
27 lines (18 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "mainwindow.h"
#include <QApplication>
#include "stringutil.h"
#include <QLocale>
int main(int argc, char *argv[])
{
////qDebug() << "matched" << StringUtil::matchWildcard("a*3*.c","abd3f.c");
QApplication a(argc, argv);
//qDebug() << "langcode:" << QLocale::languageToCode(locale.language()) << "terrcode:" << QLocale::territoryToCode(locale.territory());
//qDebug() << "langcode:" << QLocale::languageToCode(QLocale::English) << "terricode" << QLocale::territoryToCode(QLocale::UnitedStates);
//qDebug() << "langcode:" << QLocale::languageToCode(QLocale::Chinese) << "terricode" << QLocale::territoryToCode(QLocale::Taiwan);
a.setOrganizationName("ljlhome");
a.setApplicationName("moredirs");
a.setWindowIcon(QIcon(":/new/icons/icons/moredirs96.png"));
MainWindow w(nullptr);
w.show();
return a.exec();
}