void SystemTrayIcon::openPreferencesWindow()
{
    PreferencesDialog prefDialog(NULL, Qt::Dialog, &uploaders, activeUploader);
    connect(&prefDialog, SIGNAL(openDashboardPressed()), this, SLOT(openDashboard()));
    connect(&prefDialog, SIGNAL(pluginsChanged(QList<QString>,QList<QString>)), this, SLOT(reloadPlugins(QList<QString>,QList<QString>)));
    prefDialog.exec();
    disconnect(&prefDialog, SIGNAL(openDashboardPressed()), this, SLOT(openDashboard()));
    disconnect(&prefDialog, SIGNAL(pluginsChanged(QList<QString>,QList<QString>)), this, SLOT(reloadPlugins(QList<QString>,QList<QString>)));
    //Update the sytray icon, menus and shortcuts
    loadSettings();
    setAppProxy();
    updateGlobalShortcuts();
    updateSystrayMenu();
}
Esempio n. 2
0
void PreferencesDialog::on_button_dashboard_clicked()
{
    emit openDashboardPressed();
}