Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderView.qml
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 514 | delegate: FolderItemDelegate { | |||
---|---|---|---|---|---|
516 | height: gridView.cellHeight | 516 | height: gridView.cellHeight | ||
517 | } | 517 | } | ||
518 | 518 | | |||
519 | onContentXChanged: { | 519 | onContentXChanged: { | ||
520 | if (hoveredItem) { | 520 | if (hoveredItem) { | ||
521 | hoverActivateTimer.stop(); | 521 | hoverActivateTimer.stop(); | ||
522 | } | 522 | } | ||
523 | 523 | | |||
524 | editor.targetItem = null; | ||||
525 | | ||||
524 | dir.setDragHotSpotScrollOffset(contentX, contentY); | 526 | dir.setDragHotSpotScrollOffset(contentX, contentY); | ||
525 | 527 | | |||
526 | if (contentX == 0) { | 528 | if (contentX == 0) { | ||
527 | scrollLeft = false; | 529 | scrollLeft = false; | ||
528 | } | 530 | } | ||
529 | 531 | | |||
530 | if (contentX == contentItem.width - width) { | 532 | if (contentX == contentItem.width - width) { | ||
531 | scrollRight = false; | 533 | scrollRight = false; | ||
Show All 17 Lines | |||||
549 | } | 551 | } | ||
550 | } | 552 | } | ||
551 | 553 | | |||
552 | onContentYChanged: { | 554 | onContentYChanged: { | ||
553 | if (hoveredItem) { | 555 | if (hoveredItem) { | ||
554 | hoverActivateTimer.stop(); | 556 | hoverActivateTimer.stop(); | ||
555 | } | 557 | } | ||
556 | 558 | | |||
559 | editor.targetItem = null; | ||||
560 | | ||||
557 | dir.setDragHotSpotScrollOffset(contentX, contentY); | 561 | dir.setDragHotSpotScrollOffset(contentX, contentY); | ||
558 | 562 | | |||
559 | if (contentY == 0) { | 563 | if (contentY == 0) { | ||
560 | scrollUp = false; | 564 | scrollUp = false; | ||
561 | } | 565 | } | ||
562 | 566 | | |||
563 | if (contentY == contentItem.height - height) { | 567 | if (contentY == contentItem.height - height) { | ||
564 | scrollDown = false; | 568 | scrollDown = false; | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |