summaryrefslogtreecommitdiffstats
path: root/khelpcenter/navigator.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-04 14:02:26 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-04 14:02:26 -0500
commitc2924536202aff0de054bab984c7305ee9eca1c9 (patch)
tree146a901a86130cedf5a3ea74fe12f701ff34f1f8 /khelpcenter/navigator.cpp
parent88a2e255141f97ac65c65fd89b5ef9a30b9138c4 (diff)
downloadtdebase-c2924536202aff0de054bab984c7305ee9eca1c9.tar.gz
tdebase-c2924536202aff0de054bab984c7305ee9eca1c9.zip
Sort non-root entries in KHelpCenter
Make KHelpCenter entry sorting case-insensitive This resolves Bug 1849
Diffstat (limited to 'khelpcenter/navigator.cpp')
-rw-r--r--khelpcenter/navigator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/khelpcenter/navigator.cpp b/khelpcenter/navigator.cpp
index 7d865d9a8..22f530a1f 100644
--- a/khelpcenter/navigator.cpp
+++ b/khelpcenter/navigator.cpp
@@ -230,6 +230,7 @@ void Navigator::insertParentAppDocs( const TQString &name, NavigatorItem *topIte
}
createItemFromDesktopFile( topItem, desktopFile );
}
+ topItem->sortChildItems( 0, true /* ascending */ );
}
void Navigator::insertIOSlaveDocs( const TQString &name, NavigatorItem *topItem )
@@ -269,8 +270,10 @@ void Navigator::insertAppletDocs( NavigatorItem *topItem )
TQStringList files = appletDir.entryList( TQDir::Files | TQDir::Readable );
TQStringList::ConstIterator it = files.begin();
TQStringList::ConstIterator end = files.end();
- for ( ; it != end; ++it )
+ for ( ; it != end; ++it ) {
createItemFromDesktopFile( topItem, appletDir.absPath() + "/" + *it );
+ }
+ topItem->sortChildItems( 0, true /* ascending */ );
}
void Navigator::createItemFromDesktopFile( NavigatorItem *topItem,