aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Elvio Basello2008-04-12 00:07:45 +0000
committerGravatar Elvio Basello2008-04-12 00:07:45 +0000
commit58adfb2758cd53c498be23daee03ecee6330efb5 (patch)
treeaa30125b159d5cd929e90f5b575f2a868cfda4f7 /src
parentfixed universal binaries build (diff)
downloadKVIrc-58adfb2758cd53c498be23daee03ecee6330efb5.tar.gz
KVIrc-58adfb2758cd53c498be23daee03ecee6330efb5.tar.bz2
KVIrc-58adfb2758cd53c498be23daee03ecee6330efb5.zip
added info tab to about module, need more work
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1462 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/modules/about/aboutdialog.cpp35
1 files changed, 29 insertions, 6 deletions
diff --git a/src/modules/about/aboutdialog.cpp b/src/modules/about/aboutdialog.cpp
index 919c2a257..67176d4cc 100644
--- a/src/modules/about/aboutdialog.cpp
+++ b/src/modules/about/aboutdialog.cpp
@@ -75,6 +75,7 @@ KviAboutDialog::KviAboutDialog()
setCaption(__tr2qs_ctx("About KVIrc...","about"));
setOkButton(__tr2qs_ctx("Close","about"));
+ // About tab
KviStr buffer;
g_pApp->findImage(buffer,"kvi_splash.png");
@@ -93,19 +94,15 @@ KviAboutDialog::KviAboutDialog()
QString aboutString= "KVIrc <b>" KVI_VERSION " '" KVI_RELEASE_NAME "'</b><br>";
aboutString += __tr2qs_ctx("Forged by the <b>KVIrc Development Team</b>","about");
- aboutString += "<br>";
- aboutString += __tr2qs_ctx("Sources date","about");
- aboutString += ": ";
- aboutString += KVI_SOURCES_DATE;
l = new QLabel(aboutString,w);
l->setAlignment(Qt::AlignCenter);
g->addWidget(l,1,0);
addTab(w,__tr2qs_ctx("About","about"));
-
+ // Info tab
w = new QWidget(this);
g = new QGridLayout(w,1,1,4,8);
@@ -113,12 +110,38 @@ KviAboutDialog::KviAboutDialog()
v->setReadOnly(true);
g->addWidget(v,0,0);
+ // Get info
+ QString infoString = __tr2qs_ctx("Sources date","about");
+ infoString += ": ";
+ infoString += KVI_SOURCES_DATE;
+ infoString += "<br>";
+ infoString += __tr2qs_ctx("Build date","about");
+ infoString += ": ";
+ infoString += KVI_BUILD_DATE;
+ infoString += "<br>";
+ infoString += __tr2qs_ctx("Build flags","about");
+ infoString += ": ";
+ infoString += KVI_BUILD_FLAGS;
+
+ v->setText(infoString);
+
+ addTab(w,__tr2qs_ctx("Executable Informations","about"));
+
+
+ // Honor & Glory tab
+ w = new QWidget(this);
+ g = new QGridLayout(w,1,1,4,8);
+
+ v = new KviTalTextEdit(w);
+ v->setReadOnly(true);
+ g->addWidget(v,0,0);
+
v->setText(g_szAboutText);
addTab(w,__tr2qs_ctx("Honor && Glory","about"));
-
+ // License tab
w = new QWidget(this);
g = new QGridLayout(w,1,1,4,8);