-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.cpp
34 lines (24 loc) · 908 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
27
28
29
30
31
32
33
34
#include "MainWindow.h"
#include <QStyleFactory>
#include <QApplication>
#include <kddockwidgets/Config.h>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
app.setOrganizationName("LaoXing");
app.setApplicationName("XingDBG");
auto font = QApplication::font();
font.setStyleHint(QFont::Monospace);
QApplication::setFont(font);
qApp->setStyle(QStyleFactory::create(QStringLiteral("Fusion")));
auto flags = KDDockWidgets::Config::self().flags();
flags |= KDDockWidgets::Config::Flag_AutoHideSupport;
flags |= KDDockWidgets::Config::Flag_AllowReorderTabs;
flags |= KDDockWidgets::Config::Flag_HideTitleBarWhenTabsVisible;
flags |= KDDockWidgets::Config::Flag_TabsHaveCloseButton;
KDDockWidgets::Config::self().setFlags(flags);
MainWindow mainWindow;
mainWindow.setWindowTitle("Xing's LLDB GUI");
mainWindow.showMaximized();
return app.exec();
}