[Bug 76514] Wrong contents of the documentation tree when loading the last opened project on startup.

Alexander Dymo cloudtemple at mksat.net
Mon Mar 1 22:02:03 UTC 2004


------- 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=76514      
cloudtemple mksat net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From cloudtemple mksat net  2004-03-01 22:01 -------
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());




More information about the KDevelop-devel mailing list