Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f97dabb5 authored by Camilo higuita's avatar Camilo higuita

usage of store component

parent 0e730067
...@@ -55,6 +55,9 @@ import TagsList 1.0 ...@@ -55,6 +55,9 @@ import TagsList 1.0
import SyncingModel 1.0 import SyncingModel 1.0
import SyncingList 1.0 import SyncingList 1.0
import FMList 1.0
import StoreList 1.0
Maui.ApplicationWindow Maui.ApplicationWindow
{ {
id: root id: root
...@@ -289,6 +292,8 @@ Maui.ApplicationWindow ...@@ -289,6 +292,8 @@ Maui.ApplicationWindow
{ {
anchors.fill : parent anchors.fill : parent
detailsView: true detailsView: true
list.category: StoreList.WALLPAPERS
list.provider: StoreList.KDELOOK
} }
} }
...@@ -339,8 +344,8 @@ Maui.ApplicationWindow ...@@ -339,8 +344,8 @@ Maui.ApplicationWindow
{ {
id: fmDialog id: fmDialog
onlyDirs: false onlyDirs: false
mode: modes.OPEN mode: modes.SAVE
filterType: FMList.TEXT filterType: FMList.IMAGE
} }
} }
......
...@@ -70,6 +70,7 @@ Maui.Menu ...@@ -70,6 +70,7 @@ Maui.Menu
{ {
var pic = list.get(index).url var pic = list.get(index).url
dialogLoader.sourceComponent= fmDialogComponent dialogLoader.sourceComponent= fmDialogComponent
dialog.mode = dialog.modes.SAVE
dialog.suggestedFileName= Maui.FM.getFileInfo(list.get(index).url).label dialog.suggestedFileName= Maui.FM.getFileInfo(list.get(index).url).label
dialog.show(function(paths) dialog.show(function(paths)
{ {
......
...@@ -28,7 +28,7 @@ Maui.Dialog ...@@ -28,7 +28,7 @@ Maui.Dialog
text: qsTr("Background color") text: qsTr("Background color")
} }
TextField Maui.TextField
{ {
id: bgColor id: bgColor
Layout.fillWidth: true Layout.fillWidth: true
...@@ -54,7 +54,7 @@ Maui.Dialog ...@@ -54,7 +54,7 @@ Maui.Dialog
text: qsTr("Foreground color") text: qsTr("Foreground color")
} }
TextField Maui.TextField
{ {
id: fgColor id: fgColor
Layout.fillWidth: true Layout.fillWidth: true
......
...@@ -30,8 +30,19 @@ Maui.Menu ...@@ -30,8 +30,19 @@ Maui.Menu
Maui.MenuItem Maui.MenuItem
{ {
text: "Sort..." text: "Open..."
onTriggered: {close()} onTriggered:
{
dialogLoader.sourceComponent= fmDialogComponent
dialog.mode = dialog.modes.OPEN
dialog.show(function(paths)
{
console.log("OPEN IMAGE", paths)
});
close()
}
} }
Column Column
......
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