From kde-commits Thu Jul 01 13:27:34 2010 From: Gary Cramblitt Date: Thu, 01 Jul 2010 13:27:34 +0000 To: kde-commits Subject: [Konversation] 70826be: Compile under older KDEs Message-Id: <20100701132734.045CCBB52AE () projects ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=127800400628901 commit 70826beefa1a8dae73bf095c879de41701927d0a Author: Gary Cramblitt 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 #include #include +#include + +#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 +#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];