MCPcopy Create free account
hub / github.com/Skycoder42/QHotkey / main

Function main

HotkeyTest/main.cpp:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4//#define START_BACKGROUND
5
6int main(int argc, char *argv[])
7{
8 QApplication a(argc, argv);
9 HotTestWidget w;
10
11#ifdef START_BACKGROUND
12 auto startKey = new QHotkey(QKeySequence(Qt::MetaModifier | Qt::ControlModifier | Qt::Key_S), true, &w);
13 QObject::connect(startKey, &QHotkey::activated,
14 &w, &QWidget::show);
15#else
16 w.show();
17#endif
18
19 return a.exec();
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected