summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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");
};