| 4 | //#define START_BACKGROUND |
| 5 | |
| 6 | int 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected