[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Konversation] 70826be: Compile under older KDEs
From:       Gary Cramblitt <garycramblitt () comcast ! net>
Date:       2010-07-01 13:27:34
Message-ID: 20100701132734.045CCBB52AE () projects ! kde ! org
[Download RAW message or body]

commit 70826beefa1a8dae73bf095c879de41701927d0a
Author: Gary Cramblitt <garycramblitt@comcast.net>
Date:   Sat Jun 19 22:34:06 2004 +0000

    Compile under older KDEs
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=322065

diff --git a/konversation/outputfilter.cpp b/konversation/outputfilter.cpp
index f52101c..7538bdf 100644
--- a/konversation/outputfilter.cpp
+++ b/konversation/outputfilter.cpp
@@ -23,7 +23,19 @@
 #include <kdebug.h>
 #include <kio/passdlg.h>
 #include <kconfig.h>
+#include <kdeversion.h>
+
+#ifndef KDE_MAKE_VERSION
+#define KDE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
+#endif
+
+#ifndef KDE_IS_VERSION
+#define KDE_IS_VERSION(a,b,c) ( KDE_VERSION >= KDE_MAKE_VERSION(a,b,c) )
+#endif
+
+#if KDE_IS_VERSION(3,1,94)
 #include <kshell.h>
+#endif
 
 #include "outputfilter.h"
 #include "konversationapplication.h"
@@ -1041,7 +1053,11 @@ void OutputFilter::parsePrefs(const QString& parameter)
   {
     KConfig* config=KApplication::kApplication()->config();
   
+#if KDE_IS_VERSION(3,1,94)
     QStringList splitted = KShell::splitArgs(parameter);
+#else
+    QStringList splitted = QStringList::split(' ',parameter);
+#endif
     if (splitted.count() > 0)
     {
       QString group = splitted[0];
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic