From 58adfb2758cd53c498be23daee03ecee6330efb5 Mon Sep 17 00:00:00 2001 From: Elvio Basello Date: Sat, 12 Apr 2008 00:07:45 +0000 Subject: 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 --- src/modules/about/aboutdialog.cpp | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'src/modules/about/aboutdialog.cpp') 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 " KVI_VERSION " '" KVI_RELEASE_NAME "'
"; aboutString += __tr2qs_ctx("Forged by the KVIrc Development Team","about"); - aboutString += "
"; - 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 += "
"; + infoString += __tr2qs_ctx("Build date","about"); + infoString += ": "; + infoString += KVI_BUILD_DATE; + infoString += "
"; + 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); -- cgit v1.3.1-10-gc9f91