this was way way easier than I tougth.
From 9b125f2750cac7d6b2fedd3be2718c0082137f77 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava <[email protected]> Date: Wed, 10 Dec 2014 14:00:08 -0200 Subject: [PATCH] Organize string-lists alphabetically for completion
This micro patch adds the ability to sort the lists alphabetically for user interaction. Dirk asked me to do this for location, but this actually changes for location, divemaster, buddy and suit. Seems a good thing for all. Signed-off-by: Tomaz Canabrava <[email protected]> --- qt-ui/completionmodels.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-ui/completionmodels.cpp b/qt-ui/completionmodels.cpp index 7d7f7cd..1ac1846 100644 --- a/qt-ui/completionmodels.cpp +++ b/qt-ui/completionmodels.cpp @@ -15,6 +15,7 @@ list.append(buddy); \ } \ } \ + std::sort(list.begin(), list.end()); \ setStringList(list); \ } -- 2.1.3
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
