diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-09-25 14:11:43 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-10-01 13:47:39 +0200 |
| commit | 2f316085690b34036d35556efbf0815a5babd08f (patch) | |
| tree | 230a328dc755ddab3b35c5b8dc41227358e69897 /tests/manual/textrendering/nativetext/main.cpp | |
| parent | dcbe81c8303ca0d4363a6eb63d59259903c9dc33 (diff) | |
Add missing include to nativetext manual test
And move away from deprecated APIs while we're at it.
Change-Id: I6590925ed38a70a1caaa5c145e5e0b05ef10d929
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/manual/textrendering/nativetext/main.cpp')
| -rw-r--r-- | tests/manual/textrendering/nativetext/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/manual/textrendering/nativetext/main.cpp b/tests/manual/textrendering/nativetext/main.cpp index 63e5e5566a6..0d6d6fdd44e 100644 --- a/tests/manual/textrendering/nativetext/main.cpp +++ b/tests/manual/textrendering/nativetext/main.cpp @@ -9,6 +9,7 @@ #include <Foundation/Foundation.h> #include <private/qfont_p.h> #include <private/qfontengine_p.h> +#include <AppKit/AppKit.h> #endif static int s_mode; @@ -228,7 +229,7 @@ public: controls->addWidget(fontButton); auto *aaButton = new QCheckBox("NoAntialias"); - connect(aaButton, &QCheckBox::stateChanged, [&] { + connect(aaButton, &QCheckBox::checkStateChanged, [&] { for (TextRenderer *renderer : m_previews->findChildren<TextRenderer *>()) { QFont font = renderer->font(); font.setStyleStrategy(QFont::StyleStrategy(font.styleStrategy() ^ QFont::NoAntialias)); @@ -238,7 +239,7 @@ public: controls->addWidget(aaButton); auto *subpixelAAButton = new QCheckBox("NoSubpixelAntialias"); - connect(subpixelAAButton, &QCheckBox::stateChanged, [&] { + connect(subpixelAAButton, &QCheckBox::checkStateChanged, [&] { for (TextRenderer *renderer : m_previews->findChildren<TextRenderer *>()) { QFont font = renderer->font(); font.setStyleStrategy(QFont::StyleStrategy(font.styleStrategy() ^ QFont::NoSubpixelAntialias)); |
