Commit f9faa94c authored by Nate Graham's avatar Nate Graham 🔩

[kcmkwin/kwinrules] Port placeholder message to Kirigami.PlaceholderMessage

Summary: Depends on D29152

Test Plan:
{F8256396}

{F8257685}

Reviewers: iasensio, #kwin, zzag

Reviewed By: iasensio, #kwin, zzag

Subscribers: kwin

Tags: #kwin

Maniphest Tasks: T13021

Differential Revision: https://phabricator.kde.org/D29141
parent a158d3cb
......@@ -5,7 +5,7 @@ set(PROJECT_VERSION "5.18.80")
set(PROJECT_VERSION_MAJOR 5)
set(QT_MIN_VERSION "5.14.0")
set(KF5_MIN_VERSION "5.68.0")
set(KF5_MIN_VERSION "5.70.0")
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
......
......@@ -21,7 +21,7 @@
import QtQuick 2.14
import QtQuick.Layouts 1.14
import QtQuick.Controls 2.14 as QQC2
import org.kde.kirigami 2.10 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
import org.kde.kcm 1.2
import org.kde.kitemmodels 1.0
import org.kde.kcms.kwinrules 1.0
......@@ -45,7 +45,7 @@ ScrollViewKCM {
delegate: Kirigami.ListSectionHeader { label: section }
}
Item {
Kirigami.PlaceholderMessage {
id: hintArea
visible: rulesView.count <= 4
anchors {
......@@ -54,11 +54,10 @@ ScrollViewKCM {
right: parent.right
bottom: parent.bottom
}
QQC2.Button {
anchors.centerIn: parent
helpfulAction: QQC2.Action {
text: i18n("Add Properties...")
icon.name: "list-add-symbolic"
onClicked: {
onTriggered: {
propertySheet.open();
}
}
......
......@@ -23,7 +23,7 @@ import QtQuick.Layouts 1.14
import QtQuick.Controls 2.14 as QQC2
import QtQml.Models 2.14
import org.kde.kcm 1.2
import org.kde.kirigami 2.5 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
ScrollViewKCM {
id: rulesListKCM
......@@ -66,14 +66,9 @@ ScrollViewKCM {
NumberAnimation { properties: "y"; duration: Kirigami.Units.longDuration }
}
Kirigami.Heading {
level: 3
enabled: false
Kirigami.PlaceholderMessage {
visible: ruleBookView.count == 0
anchors.fill: parent
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
wrapMode: Text.WordWrap
text: i18n("No rules for specific windows are currently set");
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment