diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2023-03-09 12:52:43 +0100 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2023-03-09 16:39:46 +0100 |
commit | 7c46fa7745550436db570086b668c2c56ade120c (patch) | |
tree | e38a291e9c670e17cd460da8d58c316de5c18600 /examples | |
parent | 63202004db103951187b5531294f33cd8043e156 (diff) | |
download | qtdoc-7c46fa7745550436db570086b668c2c56ade120c.tar.gz |
Remove unused variables in document viewer demo
This patch removes two unused data members and fixes
a documentation typo.
Pick-to: 6.5 6.5.0
Change-Id: I79fd66c727f2af54f1e13a33f8da2895b587663b
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/demos/documentviewer/doc/src/documentviewer.qdoc | 2 | ||||
-rw-r--r-- | examples/demos/documentviewer/mainwindow.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/demos/documentviewer/doc/src/documentviewer.qdoc b/examples/demos/documentviewer/doc/src/documentviewer.qdoc index 33b323f6..e9607a6f 100644 --- a/examples/demos/documentviewer/doc/src/documentviewer.qdoc +++ b/examples/demos/documentviewer/doc/src/documentviewer.qdoc @@ -154,7 +154,7 @@ The class can be used to set override cursors when the mouse is hovering over a widget and to restore them upon departure. In order to prevent multiple HoverWatcher instances created for the same widget, it is - implemented as a signleton per widget. + implemented as a singleton per widget. HoverWatcher inherits from QObject and the QWidget watched becomes the instance's parent. An event filter is used to intercept the hover events without consuming them. diff --git a/examples/demos/documentviewer/mainwindow.h b/examples/demos/documentviewer/mainwindow.h index fb262cf7..64d95718 100644 --- a/examples/demos/documentviewer/mainwindow.h +++ b/examples/demos/documentviewer/mainwindow.h @@ -7,6 +7,7 @@ #include <QMainWindow> #include <QDir> #include <QFileInfo> +#include <QStringLiteral> class AbstractViewer; namespace Ui { @@ -41,11 +42,8 @@ private: int m_classId = -1; static constexpr QLatin1StringView settingsName = QLatin1StringView("DocumentViewerExample"); - static constexpr QLatin1StringView settingsFiles = QLatin1StringView("RecentFiles"); - static constexpr QLatin1StringView settingsFileName = QLatin1StringView("FileName"); static constexpr QLatin1StringView settingsDir = QLatin1StringView("WorkingDir"); static constexpr QLatin1StringView settingsMainWindow = QLatin1StringView("MainWindow"); - static constexpr QLatin1StringView settingsQuestions = QLatin1StringView("Questions"); static constexpr QLatin1StringView settingsViewers = QLatin1StringView("Viewers"); }; |