mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 18:54:45 +00:00
make sure to cancel edit when the user moves
This commit is contained in:
parent
6adbe5249d
commit
477d6c1c79
2 changed files with 10 additions and 1 deletions
|
|
@ -50,6 +50,10 @@ ContainmentLayoutManager.ItemContainer {
|
||||||
|
|
||||||
signal launch(int x, int y, var source, string title)
|
signal launch(int x, int y, var source, string title)
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: mainFlickable
|
||||||
|
onCancelEditModeForItemsRequested: cancelEdit()
|
||||||
|
}
|
||||||
onDragActiveChanged: {
|
onDragActiveChanged: {
|
||||||
launcherDragManager.active = dragActive
|
launcherDragManager.active = dragActive
|
||||||
if (dragActive) {
|
if (dragActive) {
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,6 @@ Item {
|
||||||
}
|
}
|
||||||
//END functions
|
//END functions
|
||||||
|
|
||||||
|
|
||||||
property bool componentComplete: false
|
property bool componentComplete: false
|
||||||
onWidthChanged: recalculateMaxFavoriteCount()
|
onWidthChanged: recalculateMaxFavoriteCount()
|
||||||
onHeightChanged:recalculateMaxFavoriteCount()
|
onHeightChanged:recalculateMaxFavoriteCount()
|
||||||
|
|
@ -151,6 +150,12 @@ Item {
|
||||||
contentHeight: flickableContents.height
|
contentHeight: flickableContents.height
|
||||||
interactive: !plasmoid.editMode && !launcherDragManager.active
|
interactive: !plasmoid.editMode && !launcherDragManager.active
|
||||||
|
|
||||||
|
signal cancelEditModeForItemsRequested
|
||||||
|
onDragStarted: cancelEditModeForItemsRequested()
|
||||||
|
onDragEnded: cancelEditModeForItemsRequested()
|
||||||
|
onFlickStarted: cancelEditModeForItemsRequested()
|
||||||
|
onFlickEnded: cancelEditModeForItemsRequested()
|
||||||
|
|
||||||
PlasmaComponents.ScrollBar.vertical: PlasmaComponents.ScrollBar {
|
PlasmaComponents.ScrollBar.vertical: PlasmaComponents.ScrollBar {
|
||||||
id: scrollabr
|
id: scrollabr
|
||||||
opacity: mainFlickable.moving
|
opacity: mainFlickable.moving
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue