mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
49 lines
1.3 KiB
QML
49 lines
1.3 KiB
QML
|
import QtQuick
|
||
|
import QtQuick.Controls
|
||
|
import QtQuick.Layouts
|
||
|
import QtQuick.Controls.Material
|
||
|
import ScreenPlay 1.0
|
||
|
import ScreenPlayUtil 1.0 as Common
|
||
|
|
||
|
Common.Dialog {
|
||
|
id: root
|
||
|
|
||
|
standardButtons: Dialog.Ok
|
||
|
contentHeight: 250
|
||
|
|
||
|
Connections {
|
||
|
function onMonitorConfigurationChanged() {
|
||
|
root.open()
|
||
|
}
|
||
|
|
||
|
target: ScreenPlay.monitorListModel
|
||
|
}
|
||
|
|
||
|
contentItem: Item {
|
||
|
ColumnLayout {
|
||
|
anchors.margins: 20
|
||
|
anchors.fill: parent
|
||
|
spacing: 20
|
||
|
|
||
|
Image {
|
||
|
Layout.alignment: Qt.AlignHCenter
|
||
|
Layout.preferredWidth: 150
|
||
|
Layout.preferredHeight: 150
|
||
|
source: "qrc:/assets/icons/monitor_setup.svg"
|
||
|
fillMode: Image.PreserveAspectFit
|
||
|
}
|
||
|
|
||
|
Text {
|
||
|
text: qsTr("Your monitor setup changed!\n Please configure your wallpaper again.")
|
||
|
Layout.fillWidth: true
|
||
|
Layout.fillHeight: true
|
||
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||
|
horizontalAlignment: Text.AlignHCenter
|
||
|
font.family: ScreenPlay.settings.font
|
||
|
font.pointSize: 16
|
||
|
color: Material.primaryTextColor
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|