mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
2021035cfc
To check wether the tab widgets should show the trip view, they called the selectedTrips() function. The trip view was shown if that contained only one trip. However, the selectedTrips() function was very slow, because it has to query to core models. Change the function to singleSelectedTrip(), which returns a trip if there is exactly one trip selected. The function returns early if there is more than one trip selected. This makes the select-all case much faster. There are two cases which are still very slow: - List mode, because here all top-level items are queried. - Dive log with many only top-level items. Ultimately, we will have to cache the trip selection because querying the model is too slow. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
css | ||
preferences | ||
statistics | ||
tab-widgets | ||
about.cpp | ||
about.h | ||
about.ui | ||
btdeviceselectiondialog.cpp | ||
btdeviceselectiondialog.h | ||
btdeviceselectiondialog.ui | ||
CMakeLists.txt | ||
configuredivecomputerdialog.cpp | ||
configuredivecomputerdialog.h | ||
configuredivecomputerdialog.ui | ||
divecomponentselection.ui | ||
divecomputermanagementdialog.cpp | ||
divecomputermanagementdialog.h | ||
divecomputermanagementdialog.ui | ||
divelistview.cpp | ||
divelistview.h | ||
divelogexportdialog.cpp | ||
divelogexportdialog.h | ||
divelogexportdialog.ui | ||
divelogimportdialog.cpp | ||
divelogimportdialog.h | ||
divelogimportdialog.ui | ||
divepicturewidget.cpp | ||
divepicturewidget.h | ||
diveplanner.cpp | ||
diveplanner.h | ||
diveplanner.ui | ||
diveshareexportdialog.cpp | ||
diveshareexportdialog.h | ||
diveshareexportdialog.ui | ||
divesiteimportdialog.cpp | ||
divesiteimportdialog.h | ||
divesiteimportdialog.ui | ||
downloadfromdivecomputer.cpp | ||
downloadfromdivecomputer.h | ||
downloadfromdivecomputer.ui | ||
filterwidget2.cpp | ||
filterwidget2.h | ||
filterwidget2.ui | ||
findmovedimagesdialog.cpp | ||
findmovedimagesdialog.h | ||
findmovedimagesdialog.ui | ||
groupedlineedit.cpp | ||
groupedlineedit.h | ||
importgps.cpp | ||
importgps.h | ||
importgps.ui | ||
kmessagewidget.cpp | ||
kmessagewidget.h | ||
listfilter.ui | ||
locationinformation.cpp | ||
locationinformation.h | ||
locationinformation.ui | ||
mainwindow.cpp | ||
mainwindow.h | ||
mainwindow.ui | ||
mapwidget.cpp | ||
mapwidget.h | ||
modeldelegates.cpp | ||
modeldelegates.h | ||
notificationwidget.cpp | ||
notificationwidget.h | ||
plannerDetails.ui | ||
plannerSettings.ui | ||
printdialog.cpp | ||
printdialog.h | ||
printer.cpp | ||
printer.h | ||
printoptions.cpp | ||
printoptions.h | ||
printoptions.ui | ||
qtwaitingspinner.cpp | ||
qtwaitingspinner.h | ||
renumber.ui | ||
searchbar.ui | ||
setpoint.ui | ||
shiftimagetimes.ui | ||
shifttimes.ui | ||
simplewidgets.cpp | ||
simplewidgets.h | ||
starwidget.cpp | ||
starwidget.h | ||
subsurfacewebservices.cpp | ||
subsurfacewebservices.h | ||
tableview.cpp | ||
tableview.h | ||
tableview.ui | ||
tagwidget.cpp | ||
tagwidget.h | ||
templateedit.cpp | ||
templateedit.h | ||
templateedit.ui | ||
templatelayout.cpp | ||
templatelayout.h | ||
textedit.cpp | ||
textedit.h | ||
updatemanager.cpp | ||
updatemanager.h | ||
urldialog.ui | ||
usermanual.cpp | ||
usermanual.h | ||
webservices.ui |