restore mouse wheel actions for tasks

BUG: 401380
FIXED-IN: 0.8.4
v0.8
Michail Vourlakos 6 years ago
parent 85e53e3e22
commit 45a582d36b

@ -50,33 +50,17 @@ Item{
Repeater{
model:DelegateModel {
id: windowsLocalModel
model: tasksModel //icList.model
/* rootIndex: {
if (root.inDraggingPhase) {
return tasksModel.makeModelIndex(lastValidIndex);
}
model: tasksModel
return tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index)
}*/
//! This is a little suspicious code for crashes
//! during dragging or when the dragging ends. It needs
//! investigation to be confirmed or not
rootIndex: tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index)
property int currentIndex: -1
//! Trying to avoid a crash during dragging tasks/launchers
Binding{
target: windowsLocalModel
property: "rootIndex"
value: {
if (root.inDraggingPhase) {
return 0;
}
return tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index)
}
}
delegate: Item{
readonly property string title: display
readonly property string title: display !== undefined ? display : ""
readonly property bool isMinimized: IsMinimized === true ? true : false
onIsMinimizedChanged: windowsContainer.initializeStates();

Loading…
Cancel
Save