Bug 61487 - class view hierarchy-view not enabled on import
Summary: class view hierarchy-view not enabled on import
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: classbrowser (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-21 13:40 UTC by Robert Jonsson
Modified: 2013-03-31 01:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Jonsson 2003-07-21 13:40:43 UTC
Version:           3.0.0a5 (using KDE 3.1.2)
Installed from:    compiled sources
Compiler:          gcc version 3.3 (Mandrake Linux 9.2 3.3-2mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

If the "Project Options->Class View->Display Classes" is set to "In a directory hierarchy" upon importing an existing project the resulting import is still not displayed in a hierarchy, to enable it you have to go to the named position and reselect the radio-button again (note that it has the correct value, clicking on "In a flag list" and then on "In a directory hierarchy" is needed to enable it).
Comment 1 Alexander Dymo 2003-07-27 17:06:47 UTC
Subject: kdevelop/parts/classview

CVS commit by dymo: 

Use "In a directory hierarchy" configuration option as default when nothing was specified.
CCMAIL: 61487-done@bugs.kde.org


  M +1 -1      classviewconfigwidget.cpp   1.4
  M +4 -4      classviewwidget.cpp   1.33


--- kdevelop/parts/classview/classviewwidget.cpp  #1.32:1.33
@@ -228,8 +228,8 @@ void ClassViewWidget::buildTreeByCategor
 
         QDomDocument &dom = *m_part->projectDom();
-        bool foldersAsHierarchy = DomUtil::readBoolEntry(dom, "/kdevclassview/folderhierarchy");
+        bool foldersAsHierarchy = DomUtil::readBoolEntry(dom, "/kdevclassview/folderhierarchy", true);
         int depth = 0;
         if (!foldersAsHierarchy) {
-            depth = DomUtil::readIntEntry(dom, "/kdevclassview/depthoffolders");
+            depth = DomUtil::readIntEntry(dom, "/kdevclassview/depthoffolders", 0);
             if (depth == 0)
                 depth = 2;
@@ -285,8 +285,8 @@ void ClassViewWidget::buildTreeByCategor
 
         QDomDocument &dom = *m_part->projectDom();
-        bool foldersAsHierarchy = DomUtil::readBoolEntry(dom, "/kdevclassview/folderhierarchy");
+        bool foldersAsHierarchy = DomUtil::readBoolEntry(dom, "/kdevclassview/folderhierarchy", true);
         int depth = 0;
         if (!foldersAsHierarchy) {
-            depth = DomUtil::readIntEntry(dom, "/kdevclassview/depthoffolders");
+            depth = DomUtil::readIntEntry(dom, "/kdevclassview/depthoffolders", 0);
             if (depth == 0)
                 depth = 2;


Comment 2 Aleix Pol 2013-03-31 01:30:49 UTC
moving to kdevplatform's classbrowser