From 40cf7edd21fadb77342e99b1bb6b7c87785bafa1 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Sat, 2 Jan 2021 19:19:37 +1100 Subject: favourites: implement #77, and add rename context menus --- src/favouritecollection.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/favouritecollection.hpp') diff --git a/src/favouritecollection.hpp b/src/favouritecollection.hpp index 3dffa10..1316410 100644 --- a/src/favouritecollection.hpp +++ b/src/favouritecollection.hpp @@ -77,6 +77,10 @@ public: bool addFavourite(QString const & group, Favourite const & fav); + void editFavouriteTitle(const QModelIndex &index, const QString &title); + + void editFavouriteDest(const QModelIndex & index, const QUrl & url); + Favourite getFavourite(QModelIndex const & index) const; Favourite * getMutableFavourite(QModelIndex const & index); @@ -98,7 +102,7 @@ public: bool containsUrl(QUrl const & url) const; - bool addUnsorted(QUrl const & url); + bool addUnsorted(QUrl const & url, QString const & title); bool removeUrl(QUrl const & url); -- cgit v1.2.3