diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-04 13:16:13 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-04 13:16:13 +0100 |
commit | fad0abffec1ba784256daa68c7d52891c2d08825 (patch) | |
tree | d7d255805500e1f2598ef6aea7b21ca116a1b1df /lib/bookmarks | |
parent | Fixed crash with Settings dialog (diff) | |
download | smolbote-fad0abffec1ba784256daa68c7d52891c2d08825.tar.xz |
Various minor fixes
- typo fixes
- bumped copyright year
- removed a bunch of unused imports
- fixed a couple of clazy warnings
Diffstat (limited to 'lib/bookmarks')
-rw-r--r-- | lib/bookmarks/bookmarkswidget.cpp | 9 | ||||
-rw-r--r-- | lib/bookmarks/bookmarkswidget.h | 7 |
2 files changed, 2 insertions, 14 deletions
diff --git a/lib/bookmarks/bookmarkswidget.cpp b/lib/bookmarks/bookmarkswidget.cpp index cb191c7..0b13254 100644 --- a/lib/bookmarks/bookmarkswidget.cpp +++ b/lib/bookmarks/bookmarkswidget.cpp @@ -66,15 +66,6 @@ void BookmarksWidget::save() qDebug("Writing bookmarks [%s] %s", qUtf8Printable(m_path), xbel->write(m_path) ? "ok" : "failed"); } -QStringList BookmarksWidget::bookmarksFor(const QString &term) -{ - QStringList ret; - for(int i = 0; i < ui->treeWidget->topLevelItemCount(); ++i) { - ret += searchItem(ui->treeWidget->topLevelItem(i), term); - } - return ret; -} - QAbstractItemModel *BookmarksWidget::model() const { return ui->treeWidget->model(); diff --git a/lib/bookmarks/bookmarkswidget.h b/lib/bookmarks/bookmarkswidget.h index aa188b2..5b815c0 100644 --- a/lib/bookmarks/bookmarkswidget.h +++ b/lib/bookmarks/bookmarkswidget.h @@ -23,17 +23,14 @@ class BookmarksWidget : public QWidget public: explicit BookmarksWidget(const QString &path, QWidget *parent = 0); - ~BookmarksWidget(); + ~BookmarksWidget() override ; void save(); + QAbstractItemModel *model() const; signals: void openUrl(const QUrl &url); -public slots: - QStringList bookmarksFor(const QString &term); - QAbstractItemModel *model() const; - private slots: void openItem(QTreeWidgetItem *item, int column); void showItemDetails(); |