[Bug 62475] c++ class browser broken ?

Julian Rockey linux at jrockey.com
Fri Aug 15 20:47:03 UTC 2003


I think this is due to the use of QDir::canonicalPath(). Earlier versions of 
QT (including some 3.1.x) return a blank string if the "directory" being 
working upon is actually a file. My source for canonicalPath() is listed 
below, and this clearly won't return a path if dPath is a path to a file, 
only a directory.

QString QDir::canonicalPath() const
{
    QString r;

    char cur[PATH_MAX+1];
    if ( ::getcwd( cur, PATH_MAX ) )
	if ( ::chdir(QFile::encodeName(dPath)) >= 0 ) {
	    char tmp[PATH_MAX+1];
	    if ( ::getcwd( tmp, PATH_MAX ) )
		r = QFile::decodeName(tmp);
	    ::chdir( cur );
	}

    slashify( r );
    return r;
}

cheers
Julian

On Tuesday 12 Aug 2003 10:45 am, Roberto Raggi wrote:
> Hi,
>
> maybe you have something wrong with your kde/kdevelop installation. Anyway,
> you can try to add some kdDebug() to CppSupportCpp::parseProject() in
> kdevelop/parts/cppsupport/cppsupportpart.cpp
>
> ciao robe
>
> On Monday 11 August 2003 23:21, Hendrik Kueck wrote:
> > Yes. This seems to happen with all my projects.
> > I just tried creating a new Simple KDE project using the wizard and even
> > for that case it is broken. I attach the created project as an archive.
> > The classes are missing from the toolbar selector, from the class tree
> > view in the left sidebar (Ideal mode). Furthermore Header/Implementation
> > switching does not work (greyed out in the menu).
>
> _______________________________________________
> Kdevelop-devel mailing list
> Kdevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel





More information about the KDevelop-devel mailing list