-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (25 loc) · 707 Bytes
/
Copy pathmain.cpp
File metadata and controls
31 lines (25 loc) · 707 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
28
29
30
31
#include "maTrayIcon.h"
#include "maMainWindow.h"
#include "maMAssistant.h"
#include "InfoEditor/CInfoEditor.h"
#include <QApplication>
#include <QTranslator>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setApplicationName(QObject::tr("MAssistant"));
a.setQuitOnLastWindowClosed(false);
a.setWindowIcon(QIcon(":/dragon.png"));
QTranslator translator( 0 );
translator.load(":/myAssistant_zh.qm");
a.installTranslator(&translator);
// installTranslator( &translator );
CMainWindow w;
CTrayIcon m(w);
CMAssistant assist(m, w);
assist.showTrayIcon();
// m.show();
// CInfoEditor editor;
// editor.show();
return a.exec();
}