summaryrefslogtreecommitdiff
path: root/src/distancefieldgenerator/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/distancefieldgenerator/mainwindow.cpp')
-rw-r--r--src/distancefieldgenerator/mainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/distancefieldgenerator/mainwindow.cpp b/src/distancefieldgenerator/mainwindow.cpp
index 2f0820ae7..41516bd49 100644
--- a/src/distancefieldgenerator/mainwindow.cpp
+++ b/src/distancefieldgenerator/mainwindow.cpp
@@ -52,7 +52,10 @@ QT_BEGIN_NAMESPACE
static void openHelp()
{
- QDesktopServices::openUrl(QUrl(QLatin1String("http://doc.qt.io/qt-5/qtdistancefieldgenerator-index.html")));
+ const int qtVersion = QT_VERSION;
+ QString url;
+ QTextStream(&url) << "https://doc.qt.io/qt-" << (qtVersion >> 16) << "/qtdistancefieldgenerator-index.html";
+ QDesktopServices::openUrl(QUrl(url));
}
MainWindow::MainWindow(QWidget *parent)