subsurface/desktop-widgets
Berthold Stoeger 21b1550739 Dive media: on import read metadata only once
On import of dive media, the timestamp is read from the
metadata to check if the image belongs to the selected dives.
The pictures are then listed in a dialog.

Currently, the metadata is read twice if images are outside
of a dive: once in picture_check_valid() and if it turns
out that the picture is not valid again in picture_get_time()
to display the proper timestamp.

Even though metadata-extraction is reasonably fast, this is
a bit of an embarrassment.

Instead, read the timestamps only once in the constructor of
the dialog and from then on only used these timestamps. Keep
the timestamps in a QVector. Rename the picture_check_valid()
function to picture_check_valid_time() and pass a timestamp
instead of a filename.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-09-19 14:44:34 -07:00
..
css
plugins desktop-widgets/facebook: remove SettingsObjectWrapper 2018-08-15 16:11:39 -07:00
preferences core/settings ... : remove qPref* includes in qPref.h 2018-09-11 17:25:00 -07:00
statistics Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
tab-widgets Desktop: disable UI elements that make no sense during editing 2018-09-14 10:00:54 +02:00
about.cpp Get ready for 2018 2017-12-30 08:23:22 -08:00
about.h
about.ui
btdeviceselectiondialog.cpp Bluetooth: don't call deviceDiscoveryError() on scan finished 2018-07-18 02:11:16 +03:00
btdeviceselectiondialog.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
btdeviceselectiondialog.ui
CMakeLists.txt Dive pictures: implement FindMovedImagesDialog 2018-07-04 02:27:36 +08:00
configuredivecomputerdialog.cpp Cleanup: we don't support configuring a Uemis SDA 2018-08-28 12:03:03 -07:00
configuredivecomputerdialog.h Make device enumeration use the device transport data 2018-08-27 22:10:38 -07:00
configuredivecomputerdialog.ui Configure ostc3: Remove obsoleted setting 2018-04-27 21:33:47 +03:00
divecomponentselection.ui
divecomputermanagementdialog.cpp Dive computers: turn QMultiMap into sorted vector 2018-06-17 06:53:13 +09:00
divecomputermanagementdialog.h Cleanup: fold DiveComputerManagementDialog::update() into init() 2018-06-17 06:53:13 +09:00
divecomputermanagementdialog.ui
divelistview.cpp Update the dive list context menu to reflect new media interface 2018-09-15 07:20:55 -07:00
divelistview.h Cleanup: make DiveTripModel a global object 2018-09-01 07:48:43 -07:00
divelogexportdialog.cpp Optional anonymization upon export 2018-09-13 08:16:54 -07:00
divelogexportdialog.h Cleanup: fold core/helpers.h into core/qthelper.h 2018-06-04 08:50:10 -07:00
divelogexportdialog.ui Desktop UI: small layout correction export dialog 2018-09-16 08:07:33 -07:00
divelogimportdialog.cpp desktop-widgets: Change Q_UNUSED to no parameter name 2018-05-21 12:48:04 -07:00
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp Dive media: transport dive-id in drag'n'drop events 2018-07-18 09:06:37 -07:00
divepicturewidget.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
diveplanner.cpp core/settings: change bestmixend to int, to allow qml to work 2018-09-11 17:25:00 -07:00
diveplanner.h Cleanup: replace virtual by override where appropriate 2018-07-31 11:02:34 +02:00
diveplanner.ui Choose water presets from a qcombobox in planner, custom value possible 2018-03-02 08:38:22 -08:00
diveshareexportdialog.cpp Revert "desktop-widgets: remove QSettings from desktop-widgets" 2018-08-29 03:09:10 -07:00
diveshareexportdialog.h
diveshareexportdialog.ui
downloadfromdivecomputer.cpp Desktop: allow using a file dialog to find Garmin folder 2018-09-01 17:46:19 -07:00
downloadfromdivecomputer.h Make device enumeration use the device transport data 2018-08-27 22:10:38 -07:00
downloadfromdivecomputer.ui
filterwidget.ui
findmovedimagesdialog.cpp UI change of "images"/"photo" to "media" or "media files" 2018-07-15 09:38:12 -07:00
findmovedimagesdialog.h Dive pictures: implement FindMovedImagesDialog 2018-07-04 02:27:36 +08:00
findmovedimagesdialog.ui UI change of "images"/"photo" to "media" or "media files" 2018-07-15 09:38:12 -07:00
groupedlineedit.cpp Unused code: GroupedLineEdit::removeAllColors() 2018-01-10 16:45:42 +01:00
groupedlineedit.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
kmessagewidget.cpp
kmessagewidget.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
listfilter.ui Add tool tip for negate filter button 2017-12-30 08:15:11 -08:00
locationinformation.cpp desktop: fix multi-keystroke input on location 2018-06-26 08:06:07 +02:00
locationinformation.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
locationInformation.ui Use correct alias for satellite icon for revers geo lookup 2018-01-27 12:29:00 -08:00
mainwindow.cpp code cleanup: replace lring with file local function 2018-09-15 15:51:26 -07:00
mainwindow.h Desktop: remove "edit dive" from log menu 2018-09-14 13:18:42 -07:00
mainwindow.ui Desktop: remove "edit dive" from log menu 2018-09-14 13:18:42 -07:00
mapwidget.cpp desktop-widget: move qmlRegister from mapwidget to shared helper 2018-07-12 08:08:00 -07:00
mapwidget.h
modeldelegates.cpp modeldelegates: use font metrics for dive list row height 2018-08-26 23:06:00 -07:00
modeldelegates.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
notificationwidget.cpp Use queued connection to thread-safe MainWindow error handling 2018-01-31 14:47:26 +01:00
notificationwidget.h Use queued connection to thread-safe MainWindow error handling 2018-01-31 14:47:26 +01:00
plannerDetails.ui
plannerSettings.ui
printdialog.cpp desktop-widgets: Change Q_UNUSED to no parameter name 2018-05-21 12:48:04 -07:00
printdialog.h Cleanup: replace virtual by override where appropriate 2018-07-31 11:02:34 +02:00
printer.cpp core/tests: merge Animations and add vars. to qPrefDisplay 2018-08-25 11:49:47 -07:00
printer.h
printoptions.cpp Cleanup: fold core/helpers.h into core/qthelper.h 2018-06-04 08:50:10 -07:00
printoptions.h
printoptions.ui
qtwaitingspinner.cpp
qtwaitingspinner.h
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui UI change of "images"/"photo" to "media" or "media files" 2018-07-15 09:38:12 -07:00
shifttimes.ui
simplewidgets.cpp Dive media: on import read metadata only once 2018-09-19 14:44:34 -07:00
simplewidgets.h Dive media: on import read metadata only once 2018-09-19 14:44:34 -07:00
starwidget.cpp Cleanup: remove parameter from currentDiveChanged signal 2018-07-30 12:20:26 -07:00
starwidget.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
subsurfacewebservices.cpp Optional anonymization upon export 2018-09-13 08:16:54 -07:00
subsurfacewebservices.h Desktop: Remove webservice, remove UI components (2) 2018-09-09 18:28:08 -07:00
tableview.cpp
tableview.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
tableview.ui
tagwidget.cpp
tagwidget.h
templateedit.cpp Fix includes for building against Qt-5.11.0 2018-05-23 13:29:37 +03:00
templateedit.h
templateedit.ui
templatelayout.cpp Cleanup: fold core/helpers.h into core/qthelper.h 2018-06-04 08:50:10 -07:00
templatelayout.h Translations: unify gettextFromC::tr() and QObject::tr() 2018-07-04 05:33:31 +08:00
undocommands.cpp Undo: remember deleted trip in UndoRemoveDivesFromTrip::undo() 2018-07-19 02:43:08 +03:00
undocommands.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
updatemanager.cpp desktop-widget: remove SettingsObjectWrapper and update qPref calls 2018-08-15 16:11:39 -07:00
updatemanager.h
urldialog.ui UI change of "images"/"photo" to "media" or "media files" 2018-07-15 09:38:12 -07:00
usermanual.cpp Cleanup: fold core/helpers.h into core/qthelper.h 2018-06-04 08:50:10 -07:00
usermanual.h Desktop: Derive UserManual from QDialog 2018-05-31 21:29:29 +03:00
usersurvey.cpp Revert "desktop-widgets: remove QSettings from desktop-widgets" 2018-08-29 03:09:10 -07:00
usersurvey.h
usersurvey.ui
webservices.ui