Commit 61838cd1 authored by Camilo higuita's avatar Camilo higuita

update to new mauikit shared tagging components

parent 8eb9d074
......@@ -13,7 +13,7 @@
Links::Links(QObject *parent) : BaseList(parent)
{
this->db = DB::getInstance();
this->tag = Tagging::getInstance(OWL::App, OWL::version, "org.kde.buho", OWL::comment);
this->tag = Tagging::getInstance();
this->sortList();
connect(this, &Links::sortByChanged, this, &Links::sortList);
......
......@@ -12,7 +12,7 @@ Notes::Notes(QObject *parent) : BaseList(parent)
{
qDebug()<< "CREATING NOTES LIST";
this->db = DB::getInstance();
this->tag = Tagging::getInstance(OWL::App, OWL::version, "org.kde.buho", OWL::comment);
this->tag = Tagging::getInstance();
this->sortList();
connect(this, &Notes::sortByChanged, this, &Notes::sortList);
......
......@@ -129,12 +129,9 @@ Maui.Dialog
id: tagBar
Layout.fillWidth: true
allowEditMode: true
onTagsEdited:
{
for(var i in tags)
append({tag : tags[i]})
}
list.abstract: true
list.key: "links"
onTagsEdited: list.updateToAbstract(tags)
}
}
......@@ -143,7 +140,7 @@ Maui.Dialog
{
console.log("STATE:" , link.fav)
webView.url = link.link
tagBar.populate(link.tags)
tagBar.list.lot = link.link
pinButton.checked = link.pin == 1
favButton.checked = link.fav == 1
selectedColor = link.color
......
......@@ -182,12 +182,9 @@ Maui.Dialog
visible: previewReady
Layout.fillWidth: true
allowEditMode: true
onTagsEdited:
{
for(var i in tags)
append({tag : tags[i]})
}
list.abstract: true
list.key: "links"
onTagsEdited: list.updateToAbstract(tags)
}
}
......@@ -206,6 +203,7 @@ Maui.Dialog
{
title.text = link.title
populatePreviews(link.image)
tagBar.list.lot= link.url
open()
}
......
......@@ -172,12 +172,9 @@ Maui.Dialog
id: tagBar
Layout.fillWidth: true
allowEditMode: true
onTagsEdited:
{
for(var i in tags)
append({tag : tags[i]})
}
list.abstract: true
list.key: "notes"
onTagsEdited: list.updateToAbstract(tags)
}
}
......@@ -198,7 +195,8 @@ Maui.Dialog
selectedColor = note.color
pinButton.checked = note.pin == 1
favButton.checked = note.fav == 1
tagBar.populate(note.tags)
tagBar.list.lot= note.id
open()
}
......
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