Commit 5e170ae6 authored by camilo higuita's avatar camilo higuita

using new fm placessidebar stuff

parent e90883bf
......@@ -5,8 +5,6 @@ import org.kde.kirigami 2.6 as Kirigami
import org.kde.mauikit 1.0 as Maui
import QtQuick.Window 2.0
import FMList 1.0
import "widgets"
import "widgets/views"
......@@ -143,7 +141,14 @@ Maui.ApplicationWindow
searchBar = false
}
list.groups: [FMList.PLACES_PATH, FMList.APPS_PATH, FMList.CLOUD_PATH, FMList.REMOTE_PATH, FMList.REMOVABLE_PATH, FMList.DRIVES_PATH, FMList.TAGS_PATH]
list.groups: [
Maui.FMList.PLACES_PATH,
Maui.FMList.APPS_PATH,
Maui.FMList.CLOUD_PATH,
Maui.FMList.REMOTE_PATH,
Maui.FMList.REMOVABLE_PATH,
Maui.FMList.DRIVES_PATH,
Maui.FMList.TAGS_PATH]
// width: isCollapsed ? iconSize*2 : parent.width
// height: parent.height
......
......@@ -3,8 +3,6 @@ import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.0 as Kirigami
import org.kde.mauikit 1.0 as Maui
import FMModel 1.0
import FMList 1.0
//import FMH 1.0
......@@ -48,7 +46,12 @@ ColumnLayout
// }*/
]
onNewBookmark: placesSidebar.list.refresh()
onNewBookmark:
{
for(var index in paths)
placesSidebar.list.addPlace(paths[index])
}
onCurrentPathChanged:
{
if(!isAndroid)
......
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