From kdevelop-bugs Thu Jul 29 20:35:24 2004 From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de Date: Thu, 29 Jul 2004 20:35:24 +0000 To: kdevelop-bugs Subject: [Bug 86265] New: KDELibs PCS Importer ignores KDEDIRS Message-Id: <20040729203524.3678.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=118306929004753 ------- 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.