diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-06-12 11:48:21 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-06-13 01:51:10 +0200 |
commit | 3a553507a134bee1562d34ebbf786a053d36fc05 (patch) | |
tree | 11af5b40e37920514078fb61fcd823ec82b30d49 /examples/xml/dombookmarks/xbeltree.h | |
parent | 723e331f0a811294e43207db162698c3ff8fde51 (diff) |
Brush up the DOM bookmarks example
- Use modern string literals (use QStringLiteral instead of
QLatin1StringView for strings that go into the DOM API).
- Use mime types in the file dialog handling
- Streamline code
- Remove mentions of SAX
- Use per class includes
- Do not use QObject::tr()
- Use the configure system instead of QT_NO... defines
- Fix some doc text typos
Complements 3dd3268ded4dd74c64d7ec726fd534375ab9f018.
Pick-to: 6.6 6.5
Task-number: QTBUG-111974
Change-Id: If0dc7b61e729d0a71f37743efc9b82e285d3f451
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'examples/xml/dombookmarks/xbeltree.h')
-rw-r--r-- | examples/xml/dombookmarks/xbeltree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/xml/dombookmarks/xbeltree.h b/examples/xml/dombookmarks/xbeltree.h index 0788c4c8ab..caaf4c0062 100644 --- a/examples/xml/dombookmarks/xbeltree.h +++ b/examples/xml/dombookmarks/xbeltree.h @@ -14,13 +14,13 @@ class XbelTree : public QTreeWidget Q_OBJECT public: - XbelTree(QWidget *parent = nullptr); + explicit XbelTree(QWidget *parent = nullptr); bool read(QIODevice *device); bool write(QIODevice *device) const; protected: -#if !defined(QT_NO_CONTEXTMENU) && !defined(QT_NO_CLIPBOARD) +#if QT_CONFIG(clipboard) && QT_CONFIG(contextmenu) void contextMenuEvent(QContextMenuEvent *event) override; #endif |