Commit 985d02fb authored by Nate Graham's avatar Nate Graham 🔩

Port placeholder message to Kirigami.PlaceholderMessage

Summary:
This makes the appearance more standardized by using the new Kirigmai library component.

Depends on D29057

Test Plan: {F8251670}

Reviewers: #vdg, #plasma, dvratil

Reviewed By: dvratil

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29060
parent aad7140f
......@@ -8,7 +8,7 @@ set(CMAKE_CXX_STANDARD 14)
# Dependencies
set(QT5_VERSION "5.10")
set(KF5_VERSION "5.40")
set(KF5_VERSION "5.70")
find_package(ECM ${KF5_VERSION} REQUIRED)
......
......@@ -22,7 +22,7 @@ import QtQuick 2.7
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.3
import org.kde.kirigami 2.4 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
import org.kde.kquickcontrolsaddons 2.0 as KQCAddons
import org.kde.kcm 1.2 as KCM
import org.kde.bolt 0.1 as Bolt
......@@ -64,12 +64,15 @@ KCM.ScrollViewKCM {
onTriggered: view._evalTrigger++;
}
Kirigami.Heading {
Kirigami.PlaceholderMessage {
anchors.centerIn: parent
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: Kirigami.Units.largeSpacing
visible: view.count === 0
level: 2
text: i18n("No Thunderbolt devices connected")
opacity: 0.3
}
delegate: Kirigami.AbstractListItem {
......
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