Commit f97dabb5 authored by Camilo higuita's avatar Camilo higuita

usage of store component

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