diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2023-03-09 12:52:43 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-03-11 11:09:51 +0100 |
commit | a719631f59fa163b26c55b4c1781dd25d9a9eb1d (patch) | |
tree | ec94f8987f61d38530c6a74decd20e1c2cd0b84e | |
parent | 5eeb5f7c3277fb49e90877e29b59b5ee0700aba2 (diff) | |
download | qtdoc-a719631f59fa163b26c55b4c1781dd25d9a9eb1d.tar.gz |
Remove unused variables in document viewer demo
This patch removes two unused data members and fixes
a documentation typo.
Change-Id: I79fd66c727f2af54f1e13a33f8da2895b587663b
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit 7c46fa7745550436db570086b668c2c56ade120c)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-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"); }; |