Use only the qt6 versions of the qml implementations

This commit is contained in:
luisangelsm
2026-02-13 12:37:33 +01:00
parent 87b215cfb0
commit 3ff93a570e
17 changed files with 143 additions and 2008 deletions

View File

@ -1,15 +1,17 @@
import QtQuick 2.15
import QtQuick
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.12
import QtQuick.Controls
import QtQuick.Layouts
import QtGraphicalEffects 1.0
import QtQuick.Effects
import com.yacreader.ComicModel 1.0
import com.yacreader.ComicInfo 1.0
import com.yacreader.ComicDB 1.0
import QtQuick.Controls.Basic
Rectangle {
id: main
@ -117,18 +119,31 @@ Rectangle {
mipmap: true
asynchronous : true
cache: true
visible: false
}
Item {
id: coverMask
anchors.fill: parent
layer.enabled: true
layer.effect: OpacityMask {
layer.smooth: true
visible: false
Rectangle {
anchors.fill: parent
cached: true
maskSource: Rectangle {
width: coverElement.width
height: coverElement.height
radius: 10
}
radius: 10
color: "black"
}
}
MultiEffect {
source: coverImage
anchors.fill: coverImage
maskEnabled: true
maskSource: coverMask
maskThresholdMin: 0.5
maskSpreadAtMin: 1.0
}
}
//is new
@ -403,6 +418,14 @@ Rectangle {
}
}
onOriginYChanged: {
console.log(" origin changed ", grid.originY)
}
onContentYChanged: {
console.log(" content y changed ", grid.contentY)
}
ScrollBar.vertical: ScrollBar {
visible: grid.contentHeight > grid.height