Summary: | doctree is not sorted according to the .docrc config files (solution included!) | ||
---|---|---|---|
Product: | [Unmaintained] quanta | Reporter: | bernd koesling <koessi> |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | the patched docfolder.cpp |
Description
bernd koesling
2006-09-07 13:46:52 UTC
Created attachment 17660 [details]
the patched docfolder.cpp
this is the changed file including the working solution.
SVN commit 581836 by amantia: Respect the order of items in the .docrc. Patch from the bugreport. BUG: 133704 M +1 -0 ChangeLog M +2 -2 quanta.kdevelop M +1 -4 treeviews/docfolder.cpp --- branches/KDE/3.5/kdewebdev/quanta/ChangeLog #581835:581836 @@ -24,6 +24,7 @@ - default to a better place when saving a global toolbar to the local toolbar directory and improve the error message if a toolbar cannot be saved [#130236] + - respect the order of items in the .docrc [#133704] Version 3.5.3 (Release date: 23-05-2006; Started 18-03-2005): - bugfixes: --- branches/KDE/3.5/kdewebdev/quanta/quanta.kdevelop #581835:581836 @@ -170,7 +170,7 @@ </groups> <tree> <hidenonprojectfiles>false</hidenonprojectfiles> - <hidepatterns/> + <hidepatterns></hidepatterns> <showvcsfields>true</showvcsfields> </tree> </kdevfileview> @@ -276,8 +276,8 @@ <processFunctionArguments>false</processFunctionArguments> </codecompletion> <references> + <pcs>Qt3</pcs> <pcs>KDElibs3</pcs> - <pcs>Qt3</pcs> </references> <creategettersetter> <prefixGet/> --- branches/KDE/3.5/kdewebdev/quanta/treeviews/docfolder.cpp #581835:581836 @@ -79,10 +79,7 @@ QString url = config->readEntry( item ); DocItem *el = new DocItem( this, QString(item), basePath+url); el->setPixmap( 0, SmallIcon("info") ); - } - } - - for ( list.last(); ( item = list.current() ) ; list.prev() ) { + } else if ( item[0] == '#' ) { // current item is folder item++; // remove leading # QString l_url = config->readEntry( QString("folder_")+item, "" ); thanks a lot for this incredibly fast response! as i wrote in the bugreport: the loop-error occures twice. you should change the lines #50 to #55 in the same way as you did with the lines around #79. the second function is for the first level of entries and the first one is called for nested folders. in both situations the loop should be done in one go. thank you again. SVN commit 582161 by amantia: Complete the fix for #133704 as requested (plus some cleanup). BUG: 133704 M +2 -2 quanta.kdevelop M +1 -3 src/quanta.cpp M +1 -4 treeviews/docfolder.cpp --- branches/KDE/3.5/kdewebdev/quanta/quanta.kdevelop #582160:582161 @@ -245,10 +245,10 @@ </kdevcvs> <kdevfilecreate> <filetypes> - <type icon="" ext="h" name="C++ header" create="template" > + <type icon="" ext="h" create="template" name="C++ header" > <descr>Quanta speicfic header</descr> </type> - <type icon="source_cpp" ext="cpp" name="C++ source" create="template" > + <type icon="source_cpp" ext="cpp" create="template" name="C++ source" > <descr>A new empty C++ file.</descr> </type> </filetypes> --- branches/KDE/3.5/kdewebdev/quanta/src/quanta.cpp #582160:582161 @@ -533,12 +533,10 @@ } Project::ref()->insertFile(saveUrl, true); } - if(ViewManager::ref()->activeView() && - ViewManager::ref()->activeView()->hadLastFocus() == QuantaView::VPLFocus) + if (view->hadLastFocus() == QuantaView::VPLFocus) w->docUndoRedo->reloadQuantaEditor(); w->docUndoRedo->fileSaved(); -// slotUpdateStatus(w); //FIXME: result = true; } if (oldURL.isLocalFile()) --- branches/KDE/3.5/kdewebdev/quanta/treeviews/docfolder.cpp #582160:582161 @@ -46,10 +46,7 @@ QString url = config->readEntry( item ); DocItem *el = new DocItem( this, QString(item), basePath+url); el->setPixmap( 0, SmallIcon("info") ); - } - } - - for ( list.last(); ( item = list.current() ) ; list.prev() ) { + } else if ( item[0] == '#' ) { // current item is folder item++; // remove leading # QString l_url = config->readEntry( QString("folder_")+item, "" ); |