summaryrefslogtreecommitdiffstats
path: root/kate/app/kateapp.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-25 20:56:52 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-25 20:56:52 -0500
commit98048a717ffdd3f641d2829cbc1efc993ef4109b (patch)
tree1893068825cbcc4307f9854e229ba5848774d7b7 /kate/app/kateapp.cpp
parent03e19305ec704b8749bb7564e16ed8d78a80d516 (diff)
downloadtdebase-98048a717ffdd3f641d2829cbc1efc993ef4109b.tar.gz
tdebase-98048a717ffdd3f641d2829cbc1efc993ef4109b.zip
Fix kate and kwrite versions to better match new R14 version scheme.
Diffstat (limited to 'kate/app/kateapp.cpp')
-rw-r--r--kate/app/kateapp.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/kate/app/kateapp.cpp b/kate/app/kateapp.cpp
index c6515dc12..f57bd2254 100644
--- a/kate/app/kateapp.cpp
+++ b/kate/app/kateapp.cpp
@@ -131,8 +131,12 @@ Kate::Application *KateApp::application ()
*/
TQString KateApp::kateVersion (bool fullVersion)
{
- return fullVersion ? TQString ("%1.%2.%3").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor()).arg(KDE::versionRelease())
- : TQString ("%1.%2").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor());
+// return fullVersion ? TQString ("%1.%2.%3").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor()).arg(KDE::versionRelease())
+// : TQString ("%1.%2").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor());
+ /** The previous version computation scheme (commented out above) worked fine in the 3.5.x days.
+ With the new Trinity Rx.y.z scheme the version number gets weird.
+ We now hard-code the first two numbers to match the 3.5.x days and only update the last number. */
+ return fullVersion ? TQString ("2.5.%1").arg(KDE::versionMajor()) : TQString ("%1.%2").arg(2.5);
}
void KateApp::restoreKate ()