Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b4c9123b authored by camilo higuita's avatar camilo higuita

silent warning for qt 5.15 on connections

parent d8331e25
......@@ -213,87 +213,43 @@ MauiLab.AltBrowser
Drag.keys: ["text/uri-list"]
Drag.mimeData: Drag.active ? {"text/uri-list": control.filterSelectedItems(model.url)} : {}
Connections
onClicked:
{
control.currentIndex = index
if(selectionMode || (mouse.button == Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)))
{
target: selectionBox
onUriRemoved:
{
if(uri === model.url)
{
_listDelegate.checked = false
}
}
onUriAdded:
{
if(uri === model.url)
{
_listDelegate.checked = true
}
}
onCleared: _listDelegate.checked = false
control.currentView.itemsSelected([index])
}else if(Maui.Handy.singleClick)
{
openPic(index)
}
}
Connections
onDoubleClicked:
{
control.currentIndex = index
if(!Maui.Handy.singleClick && !selectionMode)
{
target: _listDelegate
onClicked:
{
control.currentIndex = index
if(selectionMode || (mouse.button == Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)))
{
control.currentView.itemsSelected([index])
}else if(Maui.Handy.singleClick)
{
openPic(index)
}
}
onDoubleClicked:
{
control.currentIndex = index
if(!Maui.Handy.singleClick && !selectionMode)
{
openPic(index)
}
}
onPressAndHold:
{
control.currentIndex = index
_picMenu.popup()
}
onRightClicked:
{
control.currentIndex = index
_picMenu.popup()
}
onToggled:
{
control.currentIndex = index
PIX.selectItem(pixModel.get(index))
}
openPic(index)
}
}
gridDelegate: PixPic
onPressAndHold:
{
id: _gridDelegate
property int spacing : Kirigami.Settings.isMobile ? 2 : Maui.Style.space.big*1.2
fit: fitPreviews
labelsVisible: showLabels
height: control.gridView.cellHeight - spacing
width: control.gridView.cellWidth - spacing
checkable: selectionMode
isCurrentItem: (GridView.isCurrentItem || checked)
checked: selectionBox.contains(model.url)
control.currentIndex = index
_picMenu.popup()
}
Drag.keys: ["text/uri-list"]
Drag.mimeData: Drag.active ? { "text/uri-list": control.filterSelectedItems(model.url) } : {}
onRightClicked:
{
control.currentIndex = index
_picMenu.popup()
}
onToggled:
{
control.currentIndex = index
PIX.selectItem(pixModel.get(index))
}
Connections
{
......@@ -302,7 +258,7 @@ MauiLab.AltBrowser
{
if(uri === model.url)
{
_gridDelegate.checked = false
_listDelegate.checked = false
}
}
......@@ -310,53 +266,88 @@ MauiLab.AltBrowser
{
if(uri === model.url)
{
_gridDelegate.checked = true
_listDelegate.checked = true
}
}
onCleared: _gridDelegate.checked = false
onCleared: _listDelegate.checked = false
}
}
Connections
gridDelegate: PixPic
{
id: _gridDelegate
property int spacing : Kirigami.Settings.isMobile ? 2 : Maui.Style.space.big*1.2
fit: fitPreviews
labelsVisible: showLabels
height: control.gridView.cellHeight - spacing
width: control.gridView.cellWidth - spacing
checkable: selectionMode
isCurrentItem: (GridView.isCurrentItem || checked)
checked: selectionBox.contains(model.url)
Drag.keys: ["text/uri-list"]
Drag.mimeData: Drag.active ? { "text/uri-list": control.filterSelectedItems(model.url) } : {}
onClicked:
{
target: _gridDelegate
onClicked:
control.currentIndex = index
if(selectionMode || (mouse.button == Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)))
{
control.currentIndex = index
if(selectionMode || (mouse.button == Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)))
{
control.currentView.itemsSelected([index])
}else if(Maui.Handy.singleClick)
{
openPic(index)
}
}
onDoubleClicked:
control.currentView.itemsSelected([index])
}else if(Maui.Handy.singleClick)
{
control.currentIndex = index
if(!Maui.Handy.singleClick && !selectionMode)
{
openPic(index)
}
openPic(index)
}
}
onPressAndHold:
onDoubleClicked:
{
control.currentIndex = index
if(!Maui.Handy.singleClick && !selectionMode)
{
control.currentIndex = index
_picMenu.popup()
openPic(index)
}
}
onPressAndHold:
{
control.currentIndex = index
_picMenu.popup()
}
onRightClicked:
{
control.currentIndex = index
_picMenu.popup()
}
onToggled:
{
control.currentIndex = index
PIX.selectItem(pixModel.get(index))
}
onRightClicked:
Connections
{
target: selectionBox
onUriRemoved:
{
control.currentIndex = index
_picMenu.popup()
if(uri === model.url)
{
_gridDelegate.checked = false
}
}
onToggled:
onUriAdded:
{
control.currentIndex = index
PIX.selectItem(pixModel.get(index))
if(uri === model.url)
{
_gridDelegate.checked = true
}
}
onCleared: _gridDelegate.checked = false
}
}
......
......@@ -45,18 +45,14 @@ ScrollView
dropShadow: true
isCurrentItem: ListView.isCurrentItem
radius: Maui.Style.radiusV
Connections
onClicked:
{
target: delegate
onClicked:
{
rollList.currentIndex = index
picClicked(index)
}
onPressAndHold: _picMenu.popup()
onRightClicked: _picMenu.popup()
rollList.currentIndex = index
picClicked(index)
}
onPressAndHold: _picMenu.popup()
onRightClicked: _picMenu.popup()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment