Changeset View
Changeset View
Standalone View
Standalone View
src/lib/bookmarks/bookmarksmodel.h
Show All 14 Lines | |||||
15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | * ============================================================ */ | 17 | * ============================================================ */ | ||
18 | #ifndef BOOKMARKSMODEL_H | 18 | #ifndef BOOKMARKSMODEL_H | ||
19 | #define BOOKMARKSMODEL_H | 19 | #define BOOKMARKSMODEL_H | ||
20 | 20 | | |||
21 | #include <QAbstractItemModel> | 21 | #include <QAbstractItemModel> | ||
22 | #include <QSortFilterProxyModel> | 22 | #include <QSortFilterProxyModel> | ||
23 | #include <QMimeData> | ||||
23 | 24 | | |||
24 | #include "qzcommon.h" | 25 | #include "qzcommon.h" | ||
25 | 26 | | |||
26 | class QTimer; | 27 | class QTimer; | ||
27 | 28 | | |||
28 | class Bookmarks; | 29 | class Bookmarks; | ||
29 | class BookmarkItem; | 30 | class BookmarkItem; | ||
30 | 31 | | |||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
94 | private Q_SLOTS: | 95 | private Q_SLOTS: | ||
95 | void startFiltering(); | 96 | void startFiltering(); | ||
96 | 97 | | |||
97 | private: | 98 | private: | ||
98 | QString m_pattern; | 99 | QString m_pattern; | ||
99 | QTimer* m_filterTimer; | 100 | QTimer* m_filterTimer; | ||
100 | }; | 101 | }; | ||
101 | 102 | | |||
103 | class FALKON_EXPORT BookmarksButtonMimeData : public QMimeData | ||||
104 | { | ||||
105 | Q_OBJECT | ||||
106 | | ||||
107 | public: | ||||
108 | explicit BookmarksButtonMimeData(); | ||||
109 | | ||||
110 | BookmarkItem *item() const; | ||||
111 | void setBookmarkItem(BookmarkItem *item); | ||||
112 | | ||||
113 | bool hasFormat(const QString &format) const override; | ||||
114 | QStringList formats() const override; | ||||
115 | | ||||
116 | static QString mimeType(); | ||||
117 | | ||||
118 | private: | ||||
119 | BookmarkItem* m_item; | ||||
120 | }; | ||||
121 | | ||||
drosca: No QPointer. | |||||
102 | #endif // BOOKMARKSMODEL_H | 122 | #endif // BOOKMARKSMODEL_H |
No QPointer.