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 ...@@ -8,7 +8,7 @@ set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIO
project(Kamoso VERSION ${KDE_APPLICATIONS_VERSION}) 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) 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) 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 ...@@ -24,7 +24,7 @@ import QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.2 import QtQuick.Dialogs 1.2
import org.kde.kamoso 3.0 import org.kde.kamoso 3.0
import org.kde.purpose 1.0 import org.kde.purpose 1.0
import org.kde.kirigami 2.4 as Kirigami import org.kde.kirigami 2.12 as Kirigami
StackView { StackView {
id: stack id: stack
...@@ -338,20 +338,15 @@ StackView { ...@@ -338,20 +338,15 @@ StackView {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
mimeFilter: [stack.mimeFilter] mimeFilter: [stack.mimeFilter]
}
Kirigami.Heading { Kirigami.PlaceholderMessage {
Layout.fillWidth: true anchors.centerIn: parent
Layout.fillHeight: true width: parent.width - (4 * Kirigami.Units.largeSpacing)
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
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))
text: xi18nc("@info", "There are no images in <filename>%1</filename>", stack.pathOrUrl(config.saveUrl)) }
wrapMode: Text.Wrap
opacity: 0.6
} }
Kirigami.Separator { 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