mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-06 09:17:07 +02:00
0ad84736c0
Fix monitorlistmodel and add mock monitor list for easier testing Add working active wallpaper preview based on selected timeline Change many calls to use coroutines that make the async handling of wallpaper closing 1000x easier Fix wallpaper count based on actual connected wallpaper and not based on started Add LineIndicator user selected indicator
40 lines
949 B
QML
40 lines
949 B
QML
// SPDX-License-Identifier: BSD-3-Clause
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
import QtQuick.Controls.Material
|
|
import ScreenPlayWallpaper
|
|
|
|
Rectangle {
|
|
id: root
|
|
color: "#333333"
|
|
anchors.fill: parent
|
|
property int counter: 0
|
|
ColumnLayout {
|
|
anchors.centerIn: parent
|
|
Text {
|
|
Layout.fillWidth: true
|
|
color: "white"
|
|
font.pointSize: 14
|
|
text: "🎉 Qml Button clicked: " + root.counter
|
|
horizontalAlignment: Text.AlignHCenter
|
|
}
|
|
Button {
|
|
text: "Click me!"
|
|
Layout.fillWidth: true
|
|
onClicked: root.counter++
|
|
}
|
|
TextField {
|
|
placeholderText: "Edit me"
|
|
}
|
|
Button {
|
|
text: "Exit"
|
|
onClicked: {
|
|
Qt.callLater(function () {
|
|
Wallpaper.terminate();
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|