summaryrefslogtreecommitdiffstats
path: root/pica-client/picaactioncenter.cpp
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-10-20 19:59:32 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-10-20 19:59:32 +0000
commit7d18e6fc53b400e618aeba9181188e934e23cbe1 (patch)
tree02d4b3f87d96f3a2a2f567863e9870a1aec88544 /pica-client/picaactioncenter.cpp
parentdf3ffdfe86c7c875ab1a3ef4f64236d8d97eb376 (diff)
downloadpica-pica-7d18e6fc53b400e618aeba9181188e934e23cbe1.tar.gz
pica-pica-7d18e6fc53b400e618aeba9181188e934e23cbe1.zip
new dialog ShowPicaIdDialog for showing Pica ID
git-svn-id: svn://localhost/project_picapica/trunk@294 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/picaactioncenter.cpp')
-rw-r--r--pica-client/picaactioncenter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/pica-client/picaactioncenter.cpp b/pica-client/picaactioncenter.cpp
index a447b44..fe22c9b 100644
--- a/pica-client/picaactioncenter.cpp
+++ b/pica-client/picaactioncenter.cpp
@@ -5,6 +5,7 @@
#include <QApplication>
#include "../PICA_proto.h"
#include "accounts.h"
+#include "dialogs/showpicaiddialog.h"
#include <QMessageBox>
@@ -50,10 +51,6 @@ void PicaActionCenter::exit()
void PicaActionCenter::showmyid()
{
- QMessageBox mbx;
- mbx.setTextFormat(Qt::RichText);
- mbx.setText(tr("Account: <b>%1</b><br>Pica Pica ID: <b>%2</b>")
- .arg(Accounts::GetCurrentAccount().name)
- .arg(Accounts::GetCurrentAccount().id.toBase64().constData()));
- mbx.exec();
+ ShowPicaIdDialog d(Accounts::GetCurrentAccount().name, Accounts::GetCurrentAccount().id, tr("My Current Account"));
+ d.exec();
}