Style sheet example: Fix doc url for Qt 6
Pick-to: 6.1 Change-Id: I5c66b472b1687eec0ed1109ce2723d747b1a4193 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
This commit is contained in:
parent
300dec66ce
commit
e3141d5507
@ -76,10 +76,12 @@ void MainWindow::on_editStyleAction_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_aboutAction_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"),
|
QMessageBox::about(this, tr("About Style sheet"),
|
||||||
tr("The <b>Style Sheet</b> example shows how widgets can be styled "
|
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 Sheets</a>. Click <b>File|Edit Style Sheet</b> to pop up the "
|
||||||
"style editor, and either choose an existing style sheet or design "
|
"style editor, and either choose an existing style sheet or design "
|
||||||
"your own."));
|
"your own.").arg(url));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user