From 5709b7e329c760032d0d0dcfaba9107852c5ed4e Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 22 Oct 2011 12:29:55 +0100 Subject: [PATCH] Tweak Split Activity Wizard After feedback, the wizard has been tweaked so that; * The default minimum gap to find is 1 minute * The default minimum segment size is 5 minutes * It is now possible to uncheck gaps in recording Also, on a Mac the wizard style is forced to ensure that a cancel button is available since the Mac assistant style did not (you needed to press ESC). --- src/SplitActivityWizard.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/SplitActivityWizard.cpp b/src/SplitActivityWizard.cpp index 036fab8cb..3e6fa5649 100644 --- a/src/SplitActivityWizard.cpp +++ b/src/SplitActivityWizard.cpp @@ -19,14 +19,18 @@ #include "SplitActivityWizard.h" // Minimum gap in recording to find a natural break to split -static const double defaultMinimumGap = 15; // 15 minutes +static const double defaultMinimumGap = 1; // 1 minute // Minimum size of segment to identify as a new activity -static const double defaultMinimumSegmentSize = 20; // 20 minutes +static const double defaultMinimumSegmentSize = 5; // 5 minutes // Main wizard SplitActivityWizard::SplitActivityWizard(MainWindow *main) : QWizard(main), main(main) { +#ifdef Q_OS_MAX + setWizardStyle(QWizard::ModernStyle); +#endif + // delete when done setAttribute(Qt::WA_DeleteOnClose); @@ -237,7 +241,9 @@ SplitActivityWizard::setIntervalsList(SplitSelect *selector) interval.name == "Entire Activity"); // disable checkbox editing (i.e. mandatory split) at gaps in recording - bool disableit = (interval.name.startsWith("Gap in recording")); + // we have turned this off from user requests, may reinstate or choose + // to fix gaps when they are left behind after split. + bool disableit = false; /* (interval.name.startsWith("Gap in recording")); */ // selector start QCheckBox *checkBox = new QCheckBox("", this);