summaryrefslogtreecommitdiffstats
path: root/pica-client/picaactioncenter.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2016-09-15 20:01:58 +0400
committerAnton <anton@picapica>2016-09-15 20:01:58 +0400
commit674385ad22cc49084721c6d18052e83e5ad63cc7 (patch)
tree5c50f1fb1915f2903ce9f98d8831c8d4e9f7eeff /pica-client/picaactioncenter.cpp
parent57075f0806f1fcdeef1b5dad8ac4cf61ec7da6e7 (diff)
downloadpica-pica-674385ad22cc49084721c6d18052e83e5ad63cc7.tar.gz
pica-pica-674385ad22cc49084721c6d18052e83e5ad63cc7.zip
calling settings dialog from the menu
Diffstat (limited to 'pica-client/picaactioncenter.cpp')
-rw-r--r--pica-client/picaactioncenter.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/pica-client/picaactioncenter.cpp b/pica-client/picaactioncenter.cpp
index 7fe5400..1aa09ec 100644
--- a/pica-client/picaactioncenter.cpp
+++ b/pica-client/picaactioncenter.cpp
@@ -7,6 +7,7 @@
#include "accounts.h"
#include "dialogs/showpicaiddialog.h"
#include "sound.h"
+#include "dialogs/settingsdialog.h"
#include <QMessageBox>
@@ -27,6 +28,9 @@ PicaActionCenter::PicaActionCenter(QObject *parent) :
muteSoundsAct = new QAction(tr("&Mute Sounds"), this);
muteSoundsAct->setCheckable(true);
connect(muteSoundsAct, SIGNAL(triggered(bool)), this, SLOT(muteSounds(bool)));
+
+ settingsAct = new QAction(tr("&Configure Messenger..."), this);
+ connect(settingsAct, SIGNAL(triggered(bool)), this, SLOT(showsettings()));
}
void PicaActionCenter::about()
@@ -55,6 +59,12 @@ void PicaActionCenter::exit()
QApplication::instance()->quit();
}
+void PicaActionCenter::showsettings()
+{
+ SettingsDialog sd;
+ sd.exec();
+}
+
void PicaActionCenter::showmyid()
{
ShowPicaIdDialog d(Accounts::GetCurrentAccount().name, Accounts::GetCurrentAccount().id, tr("My Current Account"));