forked from qt-creator/qt-creator
QmlProfiler: Provide a horizontal scroll bar for the timeline
This requires the consolidation of the nested Flickable elements into one, which is probably a good idea anyway. The horizontal scroll bar is important because people might not understand that they can use the overview for scrolling. Change-Id: Ie1555265fc3edafaf6e6e4f34d77b0d034d45639 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -107,8 +107,7 @@ RangeMover {
|
||||
// creation control
|
||||
function releasedOnCreation() {
|
||||
if (selectionRange.creationState === 2) {
|
||||
flick.interactive = true;
|
||||
vertflick.stayInteractive = true;
|
||||
flick.stayInteractive = true;
|
||||
selectionRange.creationState = 3;
|
||||
selectionRangeControl.enabled = false;
|
||||
}
|
||||
@@ -116,8 +115,7 @@ RangeMover {
|
||||
|
||||
function pressedOnCreation() {
|
||||
if (selectionRange.creationState === 1) {
|
||||
flick.interactive = false;
|
||||
vertflick.stayInteractive = false;
|
||||
flick.stayInteractive = false;
|
||||
selectionRange.setPos(selectionRangeControl.mouseX + flick.contentX);
|
||||
selectionRange.creationState = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user