MCPcopy Create free account
hub / github.com/QNapi/qnapi / exec

Method exec

gui/src/qcumber/qsingleapplication.cpp:93–113  ·  view source on GitHub ↗

! \brief Launchs the application if allowed \see instanciationPolicy() */

Source from the content-addressed store, hash-verified

91 \see instanciationPolicy()
92*/
93int QSingleApplication::exec() {
94 int ret = -1;
95
96 if (isInstanceAllowed()) {
97 ret = QApplication::exec();
98
99 } else {
100 switch (instanciationPolicy()) {
101 case ForwardArguments:
102 qWarning("QSingleApplication : forwarding parameters");
103 sendRequest(arguments());
104 break;
105
106 default:
107 qWarning("QSingleApplication : all instances already occupied");
108 break;
109 }
110 }
111
112 return ret;
113}
114
115/*!
116 \overload

Callers 3

pbEngineConfClickedMethod · 0.45
selectSubtitlesMethod · 0.45
downloadFinishedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected