matthieuharle added a comment.

  Unless I do `import QtQuick.Templates 2.3 as T` and replace 
`QtControls.StackView` with `T.StackView` inside the wallpaper chooser, it 
doesn't pick up what's inside the template. I've never used Qt Templates 
before, so I may be missing something.
  
  Here's what I did inside QCC2 in a file named `StackView.qml` :
  
    import QtQuick 2.1
    import QtQuick.Window 2.2
    import QtQuick.Templates @QQC2_VERSION@ as T
    import org.kde.qqc2desktopstyle.private 1.0 as StylePrivate
    import org.kde.kirigami 2.4 as Kirigami
    
    T.StackView {
        pushEnter: Transition {
            PropertyAnimation {
                property: "x"
                from: main.width
                to: 0
                duration: Kirigami.units.longDuration
            }
        }
        pushExit: Transition {
            PropertyAnimation {
                property: "x"
                from: 0
                to: -main.width
                duration: Kirigami.units.longDuration
            }
        }
        popEnter: Transition {
            PropertyAnimation {
                property: "x"
                from: main.width
                to: 0
                duration: Kirigami.units.longDuration
            }
        }
        popExit: Transition {
            PropertyAnimation {
                property: "x"
                from: 0
                to: -main.width
                duration: Kirigami.units.longDuration
            }
        }
        replaceEnter: Transition {
            PropertyAnimation {
                property: "x"
                from: main.width
                to: 0
                duration: Kirigami.units.longDuration
            }
        }
        replaceExit: Transition {
            PropertyAnimation {
                property: "x"
                from: 0
                to: -main.width
                duration: Kirigami.units.longDuration
            }
        }
    }

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D20302

To: matthieuharle, #plasma, mart, hein, davidedmundson
Cc: ngraham, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

Reply via email to