diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-02 19:19:37 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-02 12:41:49 +0100 |
| commit | 40cf7edd21fadb77342e99b1bb6b7c87785bafa1 (patch) | |
| tree | 73675c042b4da725ff20119c86c8b00fb956c864 /src/favouritecollection.hpp | |
| parent | 90e20d2c047ae1d9527e15267e62dbc8349e7bb3 (diff) | |
| download | kristall-40cf7edd21fadb77342e99b1bb6b7c87785bafa1.tar.gz | |
favourites: implement #77, and add rename context menus
Diffstat (limited to 'src/favouritecollection.hpp')
| -rw-r--r-- | src/favouritecollection.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); |
