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

Method QSingleApplication

gui/src/qcumber/qsingleapplication.cpp:26–40  ·  view source on GitHub ↗

! \brief Constructor */

Source from the content-addressed store, hash-verified

24 \brief Constructor
25*/
26QSingleApplication::QSingleApplication(int& argc, char** argv, bool useGui,
27 const QString& appName)
28 : QApplication(argc, argv, useGui) {
29 setApplicationName(appName);
30
31 pChannel = new QInterProcessChannel(this);
32
33 connect(pChannel, SIGNAL(message(QString)), this, SLOT(message(QString)));
34
35 connect(pChannel, SIGNAL(request(QStringList)), this,
36 SLOT(request(QStringList)));
37
38 setMessagingPolicy(Signals);
39 setInstanciationPolicy(None);
40}
41
42/*!
43 \brief Destructor

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected