Summary: | Wrong contents of the documentation tree when loading the last opened project on startup. | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Simon MARTIN <simartin> |
Component: | doctreeview | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Simon MARTIN
2004-03-01 17:17:11 UTC
CVS commit by dymo: Store toc names in doctreeview items. This allows doctreeview to disable them when loading the project. CCMAIL: 76514-done@bugs.kde.org M +12 -0 doctreeviewwidget.cpp 1.80 --- kdevelop/parts/doctreeview/doctreeviewwidget.cpp #1.79:1.80 @@ -482,4 +482,7 @@ DocTreeTocFolder::DocTreeTocFolder(const setIndexFileName( fileName ); setText(0, name); + + QFileInfo fi(indexFileName()); + toc_name = fi.baseName(); } @@ -490,4 +493,7 @@ DocTreeTocFolder::DocTreeTocFolder(KList setIndexFileName( fileName ); + QFileInfo fi(indexFileName()); + toc_name = fi.baseName(); + refresh(); } @@ -1598,4 +1604,8 @@ void DocTreeViewWidget::projectChanged(K { folder_project->setProject(project); + + //FIXME: this takes more time to load but don't cause crashes somewhere in KStyle +// QTimer::singleShot(0, this, SLOT(refresh())); + folder_project->refresh(); if(!project) @@ -1637,4 +1647,5 @@ void DocTreeViewWidget::projectChanged(K // .. and insert all again except for ignored items QStringList ignoretocs = DomUtil::readListEntry(*m_part->projectDom(), "/kdevdoctreeview/ignoretocs", "toc"); +// kdDebug() << " !!!!!! IGNORE TOCS: " << ignoretocs << endl; QStringList ignoredh = DomUtil::readListEntry(*m_part->projectDom(), "/kdevdoctreeview/ignoredevhelp", "toc"); QStringList ignoredoxygen = DomUtil::readListEntry(*m_part->projectDom(), "/kdevdoctreeview/ignoredoxygen", "toc"); @@ -1659,4 +1670,5 @@ void DocTreeViewWidget::projectChanged(K for (; it2.current(); ++it2) { +// kdDebug() << " -- name " << it2.current()->tocName() << endl; if (!ignoretocs.contains(it2.current()->tocName())) docView->insertItem(it2.current()); |