-
-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathmain.cpp
26 lines (22 loc) · 835 Bytes
/
main.cpp
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
#include "mainwindow.h"
#include "themeprovider.h"
#include "redasmsettings.h"
#include <QApplication>
#include <QStyleFactory>
#include <kddockwidgets/Config.h>
int main(int argc, char *argv[])
{
qRegisterMetaType<size_t>("size_t");
qRegisterMetaType<rd_address>("address_t");
QApplication::setStyle(QStyleFactory::create("Fusion"));
QApplication a(argc, argv);
a.setApplicationName("redasm");
a.setApplicationDisplayName("REDasm " + QString::fromUtf8(REDASM_VERSION));
KDDockWidgets::Config::self().setFlags(KDDockWidgets::Config::Flag_AllowReorderTabs |
KDDockWidgets::Config::Flag_TabsHaveCloseButton);
REDasmSettings::setDefaultFormat(REDasmSettings::IniFormat);
ThemeProvider::applyTheme();
MainWindow w;
w.show();
return a.exec();
}