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

List:       kdevelop-bugs
Subject:    [Bug 86265] New: KDELibs PCS Importer ignores KDEDIRS
From:       kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date:       2004-07-29 20:35:24
Message-ID: 20040729203524.3678.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=86265      
           Summary: KDELibs PCS Importer ignores KDEDIRS
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: eike.welk post rwth-aachen de


Version:           Head from 28.7.04 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.3.3 
OS:                Linux

The class store generator does not use the environment variable KDEDIRS; it only uses KDEDIR!

Here is a small patch that fixes this:

===================================================================
RCS file: /home/kde/kdevelop/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp,v
retrieving revision 1.6
diff -u -3 -p -p -r1.6 settingsdialog.cpp
--- settingsdialog.cpp	20 Nov 2003 22:47:39 -0000	1.6
+++ settingsdialog.cpp	29 Jul 2004 20:18:46 -0000

 @ -42,6 +42,12  @ SettingsDialog::SettingsDialog(QWidget* 
     : SettingsDialogBase(parent,name,fl)
 {
     QStringList kdedirs;
+
+    kdedirs=QStringList::split(':', ::getenv("KDEDIRS"), false);
+    for( QStringList::Iterator it=kdedirs.begin(); it!=kdedirs.end(); ++it )
+    {
+        *it = *it + QString("/include");
+    }
     kdedirs.push_back( ::getenv("KDEDIR") + QString("/include") );
     kdedirs.push_back( "/usr/lib/kde/include" );
     kdedirs.push_back( "/usr/local/kde/include" );

================================================================

Eike.


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

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