Add checkbox to force images to match dives

Give the user the possibility to attach images to a dive even
when the times do not match

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2015-09-11 11:31:02 +02:00 committed by Dirk Hohndel
parent 5a1c041b78
commit 654a7be834
6 changed files with 25 additions and 4 deletions

View file

@ -101,6 +101,7 @@ public:
explicit ShiftImageTimesDialog(QWidget *parent, QStringList fileNames);
time_t amount() const;
void setOffset(time_t offset);
bool matchAll();
private
slots:
void buttonClicked(QAbstractButton *button);
@ -108,12 +109,14 @@ slots:
void dcDateTimeChanged(const QDateTime &);
void timeEditChanged(const QTime &time);
void updateInvalid();
void matchAllImagesToggled(bool);
private:
QStringList fileNames;
Ui::ShiftImageTimesDialog ui;
time_t m_amount;
time_t dcImageEpoch;
bool matchAllImages;
};
class URLDialog : public QDialog {