diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-10-10 17:07:30 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-10-20 21:37:02 +0200 |
commit | 61ceff89f79f277ee1050b2633b9e3bfee1a876c (patch) | |
tree | 33fd32b0424cac1a240fdeac417f8b6af1330ebc /tests/manual | |
parent | eb02561f58e232471d8c3250c396460dc8a2dbce (diff) |
Replace MAKE_TAG macro with QFont::Tag
Task-number: QTBUG-117046
Change-Id: I26e0af634fed87199bb49d57e3aa3f4e3fea0e39
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/fontfeatures/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/fontfeatures/mainwindow.cpp b/tests/manual/fontfeatures/mainwindow.cpp index 534cee88c4..474e20de65 100644 --- a/tests/manual/fontfeatures/mainwindow.cpp +++ b/tests/manual/fontfeatures/mainwindow.cpp @@ -27,8 +27,8 @@ void MainWindow::updateSampleText() for (int i = 0; i < ui->lwFeatures->count(); ++i) { QListWidgetItem *it = ui->lwFeatures->item(i); if (it->checkState() != Qt::PartiallyChecked) { - QByteArray ba = it->text().toLatin1(); - font.setFeature(ba, !!it->checkState()); + if (const auto maybeTag = QFont::Tag::fromString(it->text().toLatin1())) + font.setFeature(*maybeTag, !!it->checkState()); } } |