Add sidebar views menu item and expose model to QML

This commit is contained in:
ChrisTerBeke 2017-12-04 12:47:08 +01:00
parent 713055e320
commit 4ef39ca313
5 changed files with 37 additions and 8 deletions

View file

@ -9,6 +9,10 @@ class SettingsSidebarView(QObject, SidebarView):
def __init__(self):
super().__init__()
## As the default sidebar is not a plugin, we have a get plugin ID method to allow the sidebar view model to get the needed data.
def getPluginId(self):
return "default"
## As the default sidebar is not a plugin, we have a get meta data method here to allow the sidebar view model to get the needed data.
def getMetaData(self):
return {