Commit c275fd96 authored by Camilo higuita's avatar Camilo higuita

correct issues with opening external images and improve gallery roll aka preview bar

parent cbfb009e
......@@ -147,17 +147,17 @@ Maui.ApplicationWindow
icon.name: "folder-add"
onTriggered:
{
// dialogLoader.sourceComponent = sourcesDialogComponent;
// dialog.open()
// dialogLoader.sourceComponent = sourcesDialogComponent;
// dialog.open()
dialogLoader.sourceComponent= fmDialogComponent
dialog.mode= dialog.modes.OPEN
dialog.onlyDirs= true
dialog.show(function(paths)
{
pix.addSources(paths)
})
dialogLoader.sourceComponent= fmDialogComponent
dialog.mode= dialog.modes.OPEN
dialog.onlyDirs= true
dialog.show(function(paths)
{
pix.addSources(paths)
})
}
},
......@@ -173,6 +173,8 @@ Maui.ApplicationWindow
dialog.onlyDirs= false
dialog.show(function(paths)
{
console.log("OPEN THIS PATHS", paths)
pix.openPics(paths)
});
......
......@@ -202,7 +202,9 @@ void Gallery::append(const QString &url)
auto sourceUrl = info.dir().path();
auto picMap = FMH::getFileInfoModel(url);
picMap[FMH::MODEL_KEY::URL] = title;
picMap[FMH::MODEL_KEY::URL] = url;
picMap[FMH::MODEL_KEY::TITLE] = title;
picMap[FMH::MODEL_KEY::LABEL] = title;
picMap[FMH::MODEL_KEY::FAV] = "0";
picMap[FMH::MODEL_KEY::RATE] = "0";
picMap[FMH::MODEL_KEY::COLOR] = QString();
......
......@@ -23,7 +23,28 @@ Item
color: accentColor
radius: unit * 3
opacity: 0.8
border.color: Qt.darker(color, 1.5)
Kirigami.Separator
{
anchors
{
top: parent.rop
left: parent.left
right: parent.right
}
color: Qt.darker(parent.color, 1.5)
}
Kirigami.Separator
{
anchors
{
bottom: parent.bottom
left: parent.left
right: parent.right
}
color: Qt.darker(parent.color, 1.5)
}
}
ListView
......
......@@ -192,9 +192,11 @@ Maui.Page
{
id: galleryRoll
Layout.fillWidth: true
Layout.margins: space.big
Layout.margins: 0
Layout.topMargin: space.medium
Layout.bottomMargin: space.medium
rollHeight: 120 * unit
visible: !holder.visible
visible: false
onPicClicked: VIEWER.view(index)
}
}
......
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