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