mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Reorganise intervals by drag and drop
The interval view now allows the user to drag and drop intervals up and down in the list. We could extend the drag and drop of intervals to support analysis of segments/intervals from multiple rides in the future too. Fixes #405.
This commit is contained in:
@@ -326,6 +326,7 @@ BestIntervalDialog::addClicked()
|
||||
ride->timeToDistance(start),
|
||||
ride->timeToDistance(stop),
|
||||
allIntervals->childCount()+1);
|
||||
last->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled);
|
||||
// add
|
||||
allIntervals->addChild(last);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user