<table><tr><td style="">matthieuharle added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D20302">View Revision</a></tr></table><br /><div><div><p>Unless I do <tt style="background: #ebebeb; font-size: 13px;">import QtQuick.Templates 2.3 as T</tt> and replace <tt style="background: #ebebeb; font-size: 13px;">QtControls.StackView</tt> with <tt style="background: #ebebeb; font-size: 13px;">T.StackView</tt> 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.</p>

<p>Here's what I did inside QCC2 in a file named <tt style="background: #ebebeb; font-size: 13px;">StackView.qml</tt> :</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">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
        }
    }
}</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20302">https://phabricator.kde.org/D20302</a></div></div><br /><div><strong>To: </strong>matthieuharle, Plasma, mart, hein, davidedmundson<br /><strong>Cc: </strong>ngraham, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>