mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Mod documentation + wrap code for better readability
This commit is contained in:
@@ -22,11 +22,13 @@
|
||||
#include <QStyleFactory>
|
||||
|
||||
/**
|
||||
* @brief main
|
||||
* Main function of QElectroTech
|
||||
* @param argc : number of paramètres
|
||||
* @param argv : paramètres
|
||||
* @return
|
||||
@brief main
|
||||
Main function of QElectroTech
|
||||
@param argc : number of parameters
|
||||
\~French number of paramètres
|
||||
\~ @param argv : parameters
|
||||
\~French paramètres
|
||||
\~ @return exit code
|
||||
*/
|
||||
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
|
||||
arg_list.takeFirst();
|
||||
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());
|
||||
return 0;
|
||||
}
|
||||
|
||||
QETApp qetapp;
|
||||
QETApp::instance()->installEventFilter(&qetapp);
|
||||
QObject::connect(&app, &SingleApplication::receivedMessage, &qetapp, &QETApp::receiveMessage);
|
||||
QObject::connect(&app, &SingleApplication::receivedMessage,
|
||||
&qetapp, &QETApp::receiveMessage);
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user