summaryrefslogtreecommitdiff
path: root/examples/activeqt/webbrowser/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/activeqt/webbrowser/main.cpp')
-rw-r--r--examples/activeqt/webbrowser/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/activeqt/webbrowser/main.cpp b/examples/activeqt/webbrowser/main.cpp
index 68137c5..dc6d2f3 100644
--- a/examples/activeqt/webbrowser/main.cpp
+++ b/examples/activeqt/webbrowser/main.cpp
@@ -46,7 +46,6 @@
#include <QStatusBar>
#include <QMainWindow>
#include <QDesktopWidget>
-#include <QVersionNumber>
#include <QAbstractEventDispatcher>
#include <QSignalMapper>
#include <QVariant>
@@ -197,9 +196,9 @@ MainWindow::MainWindow()
resize(size);
move(availableGeometry.center() - QPoint(size.width(), size.height()) / 2);
}
- QVersionNumber restoredVersion = QVersionNumber::fromString(settings.value(QLatin1String(versionKey)).toString());
+ const QString restoredVersion = settings.value(QLatin1String(versionKey)).toString();
QList<Location> bookmarks = readBookMarks(settings);
- if (bookmarks.isEmpty() || restoredVersion.isNull())
+ if (bookmarks.isEmpty() || restoredVersion.isEmpty())
bookmarks = defaultBookmarks();
foreach (const Location &bookmark, bookmarks)
addBookmark(bookmark);