[PATCH] QT_VERSION_STR in KAboutDlg

Rob Kaper cap at capsi.com
Fri Sep 6 08:52:02 BST 2002


I've been getting some bugreports related to specific Qt versions. Since Qt
is more than a normal dependency (probably all of our classes inherit or use
stuff from it) I'd be in favor of listing the Qt version in the About dialog.

If noone objects, I'd like to commit this to kdelibs/kdeui.

Taking it one step further, this would be even more useful if I added it to
kdeui/kbugreport.cpp, but that would probably need some changes to the bug
report wizard. Martijn, would it be much work to extend the regexp to allow
this new data (which, since not present in older releases, would be
optional) ?

General replies on whether it is desired to have more information like this
available in the about dialog and bug report system would be welcome. I
myself wouldn't mind if the about dialog listed the versions of all major
dependencies which have a version string available at compile time.

Rob
-- 
Rob Kaper     | Gimme some love, gimme some skin,
cap at capsi.com | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A
-------------- next part --------------
Index: kaboutdialog.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kaboutdialog.cpp,v
retrieving revision 1.44
diff -u -3 -d -p -r1.44 kaboutdialog.cpp
--- kaboutdialog.cpp	2002/07/06 09:17:44	1.44
+++ kaboutdialog.cpp	2002/09/06 07:27:44
@@ -21,6 +21,7 @@
  */
 
 #include <qclipboard.h>
+#include <qglobal.h>
 #include <qimage.h>
 #include <qlabel.h>
 #include <qlayout.h>
@@ -685,8 +686,8 @@ void KAboutContainerBase::setProduct( co
   if ( kapp )
       mIconLabel->setPixmap( kapp->icon() );
 
-  QString msg1 = i18n("%1 %2 (Using KDE %3)").arg(appName).arg(version).
-    arg(QString::fromLatin1(KDE_VERSION_STRING));
+  QString msg1 = i18n("%1 %2 (Using KDE %3 and Qt %4)").arg(appName).arg(version).
+    arg(QString::fromLatin1(KDE_VERSION_STRING)).arg(QString::fromLatin1(QT_VERSION_STR));
   QString msg2 = !year.isEmpty() ? i18n("%1 %2, %3").arg('©').arg(year).
     arg(author) : QString::fromLatin1("");
 


More information about the kde-core-devel mailing list