Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
xbelsupport.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef XBELSUPPORT_H
5#define XBELSUPPORT_H
6
7#include <QtCore/QXmlStreamReader>
8#include <QtCore/QPersistentModelIndex>
9
10QT_FORWARD_DECLARE_CLASS(QIODevice)
11QT_FORWARD_DECLARE_CLASS(QModelIndex)
12
13QT_BEGIN_NAMESPACE
14
15class BookmarkModel;
16
18{
19public:
21 void writeToFile(QIODevice *device);
22
23private:
24 void writeData(const QModelIndex &index);
25
26private:
27 BookmarkModel *bookmarkModel;
28};
29
31{
32public:
34 bool readFromFile(QIODevice *device);
35
36private:
37 void readXBEL();
38 void readFolder();
39 void readBookmark();
40 void readUnknownElement();
41
42private:
43 BookmarkModel *bookmarkModel;
44 QList<QPersistentModelIndex> parents;
45};
46
47QT_END_NAMESPACE
48
49#endif // XBELSUPPORT_H
@ UserRoleFolder
static int nextIndex(int current, int count, bool forward)
bool eventFilter(QObject *object, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void closeEvent(QCloseEvent *event) override
This event handler is called with the given event when Qt receives a window close request for a top-l...
void setItemsEditable(bool editable)
bool readFromFile(QIODevice *device)
XbelReader(BookmarkModel *model)
void writeToFile(QIODevice *device)
XbelWriter(BookmarkModel *model)
Combined button and popup list for selecting options.
#define TRACE_OBJ
Definition tracer.h:34