From 5816faa7bdef0d315724566bb0c74cf4cd28eb7a Mon Sep 17 00:00:00 2001 From: me_desk Date: Wed, 22 Aug 2012 15:57:38 +0000 Subject: version number in About messagebox git-svn-id: svn://localhost/project_picapica/trunk@181 fb96df88-216d-11de-830c-f3023f12d8ac --- pica-client/picaactioncenter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pica-client/picaactioncenter.cpp b/pica-client/picaactioncenter.cpp index 9a811dc..585a70c 100644 --- a/pica-client/picaactioncenter.cpp +++ b/pica-client/picaactioncenter.cpp @@ -20,10 +20,15 @@ PicaActionCenter::PicaActionCenter(QObject *parent) : void PicaActionCenter::about() { +#ifdef PACKAGE_VERSION +#define VERSION_STRING "v"PACKAGE_VERSION +#else +#define VERSION_STRING "" +#endif QMessageBox mbx; mbx.setWindowIcon(picapica_ico_sit); mbx.setIconPixmap(picapica_ico_sit.pixmap(32)); - mbx.setText(tr("(c) 2012 Anton Sviridenko")); + mbx.setText(tr("Pica Pica Messenger "VERSION_STRING"\n(c) 2012 Anton Sviridenko\n http://picapica.im")); mbx.exec(); } -- cgit v1.2.1