mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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).
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user