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

update to new mauikit shared tagging components

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