summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-03-09 12:52:43 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-11 14:30:52 +0000
commit3c7f414ff8fb7036e420072460035322715a60a7 (patch)
treeaecbcca817955b45dca323686c295116cff1dd4b
parent116a39721dc835668410567880f00751586a1e2f (diff)
downloadqtdoc-3c7f414ff8fb7036e420072460035322715a60a7.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> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 7c46fa7745550436db570086b668c2c56ade120c)
-rw-r--r--examples/demos/documentviewer/doc/src/documentviewer.qdoc2
-rw-r--r--examples/demos/documentviewer/mainwindow.h4
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");
};