mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Mod documentation + wrap code for better readability
This commit is contained in:
@@ -22,11 +22,13 @@
|
|||||||
#include <QStyleFactory>
|
#include <QStyleFactory>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief main
|
@brief main
|
||||||
* Main function of QElectroTech
|
Main function of QElectroTech
|
||||||
* @param argc : number of paramètres
|
@param argc : number of parameters
|
||||||
* @param argv : paramètres
|
\~French number of paramètres
|
||||||
* @return
|
\~ @param argv : parameters
|
||||||
|
\~French paramètres
|
||||||
|
\~ @return exit code
|
||||||
*/
|
*/
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@@ -56,14 +58,16 @@ int main(int argc, char **argv)
|
|||||||
//Remove the first argument, it's the binary file
|
//Remove the first argument, it's the binary file
|
||||||
arg_list.takeFirst();
|
arg_list.takeFirst();
|
||||||
QETArguments qetarg(arg_list);
|
QETArguments qetarg(arg_list);
|
||||||
QString message = "launched-with-args: " + QET::joinWithSpaces(QStringList(qetarg.arguments()));
|
QString message = "launched-with-args: " + QET::joinWithSpaces(
|
||||||
|
QStringList(qetarg.arguments()));
|
||||||
app.sendMessage(message.toUtf8());
|
app.sendMessage(message.toUtf8());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
QETApp qetapp;
|
QETApp qetapp;
|
||||||
QETApp::instance()->installEventFilter(&qetapp);
|
QETApp::instance()->installEventFilter(&qetapp);
|
||||||
QObject::connect(&app, &SingleApplication::receivedMessage, &qetapp, &QETApp::receiveMessage);
|
QObject::connect(&app, &SingleApplication::receivedMessage,
|
||||||
|
&qetapp, &QETApp::receiveMessage);
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user