mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 02:43:04 -05:00
Use only the qt6 versions of the qml implementations
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user