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
QApplication
qa(argc, argv);
20
CGuiApplication
a(
"samplehotkey"
, swift::misc::CApplicationInfo::Sample,
QPixmap
());
21
swift::gui::components::CSettingsHotkeyComponent
w;
22
w.
show
();
23
return
a.
exec
();
24
}
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
QApplication
QPixmap
QWidget::show
void show()
main
int main(int argc, char *argv[])
main
Definition:
main.cpp:20
settingshotkeycomponent.h
Generated on Sat Dec 13 2025 22:26:26 for swift by
1.9.1