summaryrefslogtreecommitdiffstats
path: root/pica-client/picaactioncenter.cpp
diff options
context:
space:
mode:
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"));