mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Mod doc to set style de same + Fix indentation code
This commit is contained in:
committed by
Laurent Trinques
parent
251dfdf37a
commit
2cdfce18ec
@@ -24,7 +24,7 @@
|
||||
@param parent
|
||||
*/
|
||||
MacOSXOpenEvent::MacOSXOpenEvent(QObject *parent) :
|
||||
QObject(parent)
|
||||
QObject(parent)
|
||||
{}
|
||||
|
||||
/**
|
||||
@@ -35,13 +35,13 @@ MacOSXOpenEvent::MacOSXOpenEvent(QObject *parent) :
|
||||
*/
|
||||
bool MacOSXOpenEvent::eventFilter(QObject *watched, QEvent *event)
|
||||
{
|
||||
if (event->type() == QEvent::FileOpen)
|
||||
{
|
||||
SingleApplication *app = dynamic_cast<SingleApplication *>(watched);
|
||||
QFileOpenEvent *open_event = static_cast<QFileOpenEvent*>(event);
|
||||
QString message = "launched-with-args: " + open_event->file();
|
||||
app->sendMessage(message.toUtf8());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
if (event->type() == QEvent::FileOpen)
|
||||
{
|
||||
SingleApplication *app = dynamic_cast<SingleApplication *>(watched);
|
||||
QFileOpenEvent *open_event = static_cast<QFileOpenEvent*>(event);
|
||||
QString message = "launched-with-args: " + open_event->file();
|
||||
app->sendMessage(message.toUtf8());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user