Fix QML in Qt6

This means having two versions of everything, the idea is to migrate to Qt6, test that everything works fine and drop Qt5 as soon as possible.
This commit is contained in:
Luis Ángel San Martín
2022-09-07 16:53:52 +02:00
parent 60e2255886
commit bc35b5d65f
8 changed files with 1260 additions and 2 deletions

View File

@ -0,0 +1,28 @@
import QtQuick 2.15
import Qt5Compat.GraphicalEffects
Item {
property bool read
signal readChangedByUser(bool read)
MouseArea {
anchors.fill: read_compact
onClicked: {
readChangedByUser(!read);
}
}
Image {
id: read_compact
source: "info-tick.png"
}
ColorOverlay {
anchors.fill: read_compact
source: read_compact
color: read ? readTickCheckedColor : readTickUncheckedColor
}
}