summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-05-07 13:12:32 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-05-07 23:35:53 +0000
commit70c1f674cae33d59c0e5b3c1ca5c4d523ddeff40 (patch)
treef7d1e816b9d3e00c520eb2c30edad9622b9bbc87 /examples/widgets/widgets
parent68aa09b5bd481ad4e13083e3264471a84308d027 (diff)
Style sheet example: Fix doc url for Qt 6
Change-Id: I5c66b472b1687eec0ed1109ce2723d747b1a4193 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit e3141d5507ba9276a5f154415e013fd66875c390) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/widgets/widgets')
-rw-r--r--examples/widgets/widgets/stylesheet/mainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/widgets/widgets/stylesheet/mainwindow.cpp b/examples/widgets/widgets/stylesheet/mainwindow.cpp
index a8bd20e964..6e7bb295e1 100644
--- a/examples/widgets/widgets/stylesheet/mainwindow.cpp
+++ b/examples/widgets/widgets/stylesheet/mainwindow.cpp
@@ -76,10 +76,12 @@ void MainWindow::on_editStyleAction_triggered()
void MainWindow::on_aboutAction_triggered()
{
+ const QString url = QStringLiteral("http://doc.qt.io/qt-%1/stylesheet.html")
+ .arg(QT_VERSION_MAJOR);
QMessageBox::about(this, tr("About Style sheet"),
tr("The <b>Style Sheet</b> example shows how widgets can be styled "
- "using <a href=\"http://doc.qt.io/qt-5/stylesheet.html\">Qt "
+ "using <a href=\"%1\">Qt "
"Style Sheets</a>. Click <b>File|Edit Style Sheet</b> to pop up the "
"style editor, and either choose an existing style sheet or design "
- "your own."));
+ "your own.").arg(url));
}