lots of little bug fixes

This commit is contained in:
Chris Cochrun 2025-08-04 07:37:35 -05:00
parent de80d304bf
commit ee5481f8db
17 changed files with 125 additions and 116 deletions

View file

@ -1,15 +1,15 @@
import QtQuick 2.13
import QtQuick
import QtQuick.Effects
import QtQuick.Controls 2.12 as Controls
import QtQuick.Controls as Controls
/* import QtQuick.Window 2.15 */
import QtQuick.Layouts 1.15
import QtQuick.Shapes 1.15
import QtQml.Models 2.15
import QtQuick.Layouts
import QtQuick.Shapes
import QtQml.Models
/* import QtQml.Models 2.12 */
/* import QtMultimedia 5.15 */
/* import QtAudioEngine 1.15 */
import Qt5Compat.GraphicalEffects
import org.kde.kirigami 2.13 as Kirigami
import org.kde.kirigami as Kirigami
import "./" as Presenter
import org.presenter 1.0
@ -17,22 +17,32 @@ Item {
id: root
property var selectedItem: serviceItemList.selected
property var hlItem
property var parentItem
Rectangle {
id: bg
color: Kirigami.Theme.backgroundColor
anchors.fill: parent
opacity: 0.90
opacity: 1.0
}
MultiEffect {
id: backgroundBlur
source: bg
anchors.fill: bg
blur: 1.0
blurMultiplier: 20
blurEnabled: true
}
/* ShaderEffectSource { */
/* id: shaderArea */
/* sourceItem: parentItem */
/* sourceRect: Qt.rect(0, 0, parent.width, parent.height) */
/* width: parent.width */
/* height: parent.height */
/* } */
/* MultiEffect { */
/* id: backgroundBlur */
/* source: shaderArea */
/* anchors.fill: parent */
/* autoPaddingEnabled: true */
/* blur: 0.1 */
/* /\* blurMultiplier: 2 *\/ */
/* blurEnabled: true */
/* } */
ColumnLayout {
id: layout
@ -78,15 +88,16 @@ Item {
}
Component {
id: serviceListItem
Item {
id: serviceListDelegate
Controls.ItemDelegate {
id: serviceListItem
implicitWidth: serviceItemList.width
height: Kirigami.Units.gridUnit * 2
Component.onCompleted: Utils.dbg("HELLLLLOOOOOO: " + ServiceItemModel.getItem(0).name)
property var selectedItems
DropArea {
contentItem: DropArea {
id: serviceDrop
anchors.fill: parent
@ -272,9 +283,11 @@ Item {
/* width: 20 */
listItem: serviceListItem
listView: serviceItemList
onMoveRequested: ServiceItemModel.moveRows(oldIndex,
newIndex,
1)
onMoveRequested: (oldIndex, newIndex) => {
ServiceItemModel.moveRows(oldIndex,
newIndex,
1)
}
}
}
@ -345,7 +358,7 @@ Item {
model: ServiceItemModel
delegate: serviceListItem
delegate: serviceListDelegate
Kirigami.WheelHandler {
id: wheelHandler