Index: lib/widgets/propeditor/pcombobox.cpp
===================================================================
RCS file: /home/kde/kdevelop/lib/widgets/propeditor/pcombobox.cpp,v
retrieving revision 1.1
diff -u -r1.1 pcombobox.cpp
--- lib/widgets/propeditor/pcombobox.cpp	9 Sep 2003 16:13:05 -0000	1.1
+++ lib/widgets/propeditor/pcombobox.cpp	24 Sep 2003 10:01:38 -0000
@@ -59,7 +59,11 @@
 
 void PComboBox::setValue(const QVariant value, bool emitChange)
 {
+#if QT_VERSION >= 0x030100
     if (!value.isNull())
+#else
+    if (value.canCast(QVariant::String))
+#endif
     {
         setCurrentText(r_corresp[value.toString()]);
         if (emitChange)
Index: lib/widgets/propeditor/psymbolcombo.cpp
===================================================================
RCS file: /home/kde/kdevelop/lib/widgets/propeditor/psymbolcombo.cpp,v
retrieving revision 1.1
diff -u -r1.1 psymbolcombo.cpp
--- lib/widgets/propeditor/psymbolcombo.cpp	9 Sep 2003 16:13:05 -0000	1.1
+++ lib/widgets/propeditor/psymbolcombo.cpp	24 Sep 2003 10:01:38 -0000
@@ -61,7 +61,12 @@
 
 void PSymbolCombo::setValue(const QVariant value, bool emitChange)
 {
+#if QT_VERSION >= 0x030100
     if (!(value.isNull()))
+#else
+    if (value.canCast(QVariant::Int))
+
+#endif
     {
         edit->setText(QChar(value.toInt()));
         if (emitChange)
Index: parts/cppsupport/cppsupportpart.cpp
===================================================================
RCS file: /home/kde/kdevelop/parts/cppsupport/cppsupportpart.cpp,v
retrieving revision 1.230
diff -u -r1.230 cppsupportpart.cpp
--- parts/cppsupport/cppsupportpart.cpp	22 Sep 2003 18:53:20 -0000	1.230
+++ parts/cppsupport/cppsupportpart.cpp	24 Sep 2003 10:01:38 -0000
@@ -457,7 +457,11 @@
 	           if( !text.isEmpty() )
 		       text += "::";
 	           text += formatModelItem( *it, true );
-		   text = text.replace( QString::fromLatin1("&"), QString::fromLatin1("&&") );
+#if QT_VERSION >= 0x030100
+       text = text.replace( QString::fromLatin1("&"), QString::fromLatin1("&&") );
+#else
+		   text = text.replace( QRegExp(QString::fromLatin1("&")), QString::fromLatin1("&&") );
+#endif
                    int id = m->insertItem( text, this, SLOT(gotoLine(int)) );
 	           int line, column;
 	           (*it)->getStartPosition( &line, &column );
@@ -489,7 +493,11 @@
 		    if( !text.isEmpty() )
 			text += "::";
 		    text += formatModelItem( *it, true );
-		    text = text.replace( QString::fromLatin1("&"), QString::fromLatin1("&&") );
+#if QT_VERSION >= 0x030100
+        text = text.replace( QString::fromLatin1("&"), QString::fromLatin1("&&") );
+#else
+        text = text.replace( QRegExp(QString::fromLatin1("&")), QString::fromLatin1("&&") );
+#endif
 		    int id = m2->insertItem( text, this, SLOT(gotoDeclarationLine(int)) );
 		    int line, column;
 		    (*it)->getStartPosition( &line, &column );
Index: parts/fileview/filetreewidget.cpp
===================================================================
RCS file: /home/kde/kdevelop/parts/fileview/filetreewidget.cpp,v
retrieving revision 1.35
diff -u -r1.35 filetreewidget.cpp
--- parts/fileview/filetreewidget.cpp	22 Sep 2003 18:53:19 -0000	1.35
+++ parts/fileview/filetreewidget.cpp	24 Sep 2003 10:01:38 -0000
@@ -44,6 +44,21 @@
 // class MyFileTreeViewItem
 ///////////////////////////////////////////////////////////////////////////////
 
+#ifndef KDE_IS_VERSION
+// that is for KDE<3.1
+KURL KURL_fromPathOrURL(const QString& text )
+{
+  if ( text.isEmpty() )
+    return KURL();
+    KURL url;
+    if ( text[0] == '/' )
+      url.setPath( text );
+    else
+      url = text;
+  return url;
+}
+#endif
+
 class MyFileTreeViewItem : public KFileTreeViewItem
 {
 public:
@@ -245,7 +260,12 @@
 
     addProjectFiles( m_part->project()->allFiles(), true );
 
+#if defined(KDE_IS_VERSION)
     KURL url = KURL::fromPathOrURL( dirName );
+#else
+// for KDE < 3.1
+    KURL url = KURL_fromPathOrURL( dirName );
+#endif
     const QPixmap& pix = KMimeType::mimeType("inode/directory")->pixmap( KIcon::Small );
 
     // this is a bit odd, but the order of these calls seems to be important
Index: plugins/pcsimporter/customimporter/settingsdialog.cpp
===================================================================
RCS file: /home/kde/kdevelop/plugins/pcsimporter/customimporter/settingsdialog.cpp,v
retrieving revision 1.2
diff -u -r1.2 settingsdialog.cpp
--- plugins/pcsimporter/customimporter/settingsdialog.cpp	17 Sep 2003 21:14:34 -0000	1.2
+++ plugins/pcsimporter/customimporter/settingsdialog.cpp	24 Sep 2003 10:01:38 -0000
@@ -9,7 +9,6 @@
  *                                                                         *
  ***************************************************************************/
 
-#include "settingsdialog.h"
 
 #include <klistbox.h>
 #include <kcombobox.h>
@@ -20,10 +19,14 @@
 // only for KDE < 3.1
 #if KDE_VERSION <= 305
 #include "../compat/kdeveditlistbox.h"
-using namespace KDevCompat;
+//using namespace KDevCompat;
+#define KEditListBox KDevCompat::KEditListBox
 #else
 #include <keditlistbox.h>
 #endif
+
+// should be included after possible KEditListBox redefinition
+#include "settingsdialog.h"
 
 #include <qfile.h>
 #include <qdir.h>
