From e3141d5507ba9276a5f154415e013fd66875c390 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 7 May 2021 13:12:32 +0200 Subject: [PATCH] Style sheet example: Fix doc url for Qt 6 Pick-to: 6.1 Change-Id: I5c66b472b1687eec0ed1109ce2723d747b1a4193 Reviewed-by: Cristian Maureira-Fredes --- examples/widgets/widgets/stylesheet/mainwindow.cpp | 6 ++++-- 1 file 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 Style Sheet example shows how widgets can be styled " - "using Qt " + "using Qt " "Style Sheets. Click File|Edit Style Sheet to pop up the " "style editor, and either choose an existing style sheet or design " - "your own.")); + "your own.").arg(url)); }