Commit 4fa41fe0 authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Rename ImageViewer to ImageViewPage

The old name was confusing. It does not actually display images. It is a
page that shows a ListView of ImageDelegates.
parent 9b48c5a9
......@@ -14,7 +14,7 @@ ImageDocument::ImageDocument()
m_image = new QImage();
connect(this, &ImageDocument::pathChanged, this, [this](const QString &url) {
emit resetHandle();
/** Since the url passed by the model in the ImageViewer.qml contains 'file://' prefix */
/** Since the url passed by the model in the ImageViewPage.qml contains 'file://' prefix */
QString location = QUrl(url).path();
m_image->load(location);
m_edited = false;
......
......@@ -393,7 +393,7 @@ Kirigami.ScrollablePage {
if (gridView.url.toString().startsWith("trash:")) {
break
}
applicationWindow().pageStack.layers.push(Qt.resolvedUrl("ImageViewer.qml"), {
applicationWindow().pageStack.layers.push(Qt.resolvedUrl("ImageViewPage.qml"), {
startIndex: page.model.index(gridView.currentIndex, 0),
imagesModel: page.model
})
......
......@@ -87,7 +87,7 @@ Kirigami.ApplicationWindow {
const url = String(Koko.DirModelUtils.directoryOfUrl(KokoPrivate.OpenFileModel.urlToOpen)).replace("file:", "");
albumView.model.sourceModel.url = url;
fetchImageToOpen = true;
pageStack.layers.push(Qt.resolvedUrl("ImageViewer.qml"), {
pageStack.layers.push(Qt.resolvedUrl("ImageViewPage.qml"), {
imagesModel: imageFolderModel.sourceModel
});
}
......@@ -112,7 +112,7 @@ Kirigami.ApplicationWindow {
console.log(url)
albumView.model.sourceModel.url = url;
fetchImageToOpen = true;
pageStack.layers.push(Qt.resolvedUrl("ImageViewer.qml"), {
pageStack.layers.push(Qt.resolvedUrl("ImageViewPage.qml"), {
imagesModel: imageFolderModel.sourceModel
});
}
......
......@@ -8,7 +8,7 @@ SPDX-License-Identifier: LGPL-2.0-or-later
<file>qml/AlbumView.qml</file>
<file>qml/EditorView.qml</file>
<file>qml/ImageDelegate.qml</file>
<file>qml/ImageViewer.qml</file>
<file>qml/ImageViewPage.qml</file>
<file>qml/Main.qml</file>
<file>qml/OverviewControl.qml</file>
<file>qml/SelectionButton.qml</file>
......
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