Added dbus interface for regular qcma.

Added option to disable the systray: --no-systray.
This commit is contained in:
codestation
2014-04-19 23:05:20 -04:30
parent 24af4d428e
commit a4c2301cab
9 changed files with 107 additions and 21 deletions

View File

@@ -110,8 +110,10 @@ int main(int argc, char *argv[])
//TODO: check if this is actually needed since we don't have a main window by default
QApplication::setQuitOnLastWindowClosed(false);
bool showSystray = app.arguments().contains("--no-systray");
MainWidget widget;
widget.prepareApplication();
widget.prepareApplication(showSystray);
// receive the message from another process
QObject::connect(&app, SIGNAL(messageAvailable(QString)), &widget, SLOT(receiveMessage(QString)));