diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ 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}) diff --git a/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml b/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml --- a/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml +++ b/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml @@ -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,20 +45,20 @@ delegate: Kirigami.ListSectionHeader { label: section } } - Item { + Kirigami.PlaceholderMessage { id: hintArea visible: rulesView.count <= 4 anchors { top: parent.contentItem.bottom left: parent.left right: parent.right bottom: parent.bottom } - QQC2.Button { - anchors.centerIn: parent + text: "" // Needs to be set to something, even if just an empty string + helpfulAction: QQC2.Action { text: i18n("Add Properties...") icon.name: "list-add-symbolic" - onClicked: { + onTriggered: { propertySheet.open(); } } diff --git a/kcmkwin/kwinrules/package/contents/ui/RulesList.qml b/kcmkwin/kwinrules/package/contents/ui/RulesList.qml --- a/kcmkwin/kwinrules/package/contents/ui/RulesList.qml +++ b/kcmkwin/kwinrules/package/contents/ui/RulesList.qml @@ -23,7 +23,7 @@ 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 @@ 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"); } }