Commit b8e7aae8 authored by Nate Graham's avatar Nate Graham 💤
Browse files

Port to Kirigami.PlaceholderMessage

Because it was made for exactly this thing.
parent 74a3b824
......@@ -8,7 +8,7 @@ set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIO
project(Kamoso VERSION ${KDE_APPLICATIONS_VERSION})
set(KF5_MIN_VERSION 5.63.0)
set(KF5_MIN_VERSION 5.70.0)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
......
......@@ -24,7 +24,7 @@ import QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.2
import org.kde.kamoso 3.0
import org.kde.purpose 1.0
import org.kde.kirigami 2.4 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
StackView {
id: stack
......@@ -338,20 +338,15 @@ StackView {
Layout.fillWidth: true
Layout.fillHeight: true
mimeFilter: [stack.mimeFilter]
}
Kirigami.Heading {
Layout.fillWidth: true
Layout.fillHeight: true
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
Kirigami.PlaceholderMessage {
anchors.centerIn: parent
width: parent.width - (4 * Kirigami.Units.largeSpacing)
visible: view.count == 0
visible: view.count == 0
level: 2
text: xi18nc("@info", "There are no images in <filename>%1</filename>", stack.pathOrUrl(config.saveUrl))
wrapMode: Text.Wrap
opacity: 0.6
text: xi18nc("@info", "There are no images in <filename>%1</filename>", stack.pathOrUrl(config.saveUrl))
}
}
Kirigami.Separator {
......
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