swift
samples
hotkey
main.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
6
7
#include <QApplication>
8
9
#include "
gui/components/settingshotkeycomponent.h
"
10
#include "
gui/guiapplication.h
"
11
#include "
misc/directoryutils.h
"
12
13
using namespace
swift::misc
;
14
using namespace
swift::gui
;
15
17
int
main
(
int
argc,
char
*argv[])
18
{
19
CGuiApplication::highDpiScreenSupport();
20
QApplication qa(argc, argv);
21
CGuiApplication
a(
"samplehotkey"
, swift::misc::CApplicationInfo::Sample, QPixmap());
22
swift::gui::components::CSettingsHotkeyComponent
w;
23
w.show();
24
return
a.
exec
();
25
}
swift::core::CApplication::exec
int exec()
Finishes initialization and executes the event loop.
Definition:
application.cpp:199
swift::gui::CGuiApplication
GUI application, a specialized version of swift::core::CApplication for GUI applications.
Definition:
guiapplication.h:58
swift::gui::components::CSettingsHotkeyComponent
Configure hotkeys.
Definition:
settingshotkeycomponent.h:30
directoryutils.h
guiapplication.h
swift::gui
GUI related classes.
Definition:
altitudeedit.cpp:13
swift::misc
Free functions in swift::misc.
Definition:
aircraftmatcher.h:22
main
int main(int argc, char *argv[])
main
Definition:
main.cpp:20
settingshotkeycomponent.h
Generated on Mon Mar 24 2025 16:42:23 for swift by
1.9.1