Enable emoji insertion menu item for nativetext manual test

Change-Id: I5a8a2179d60ca352da88dc45e42de87b81c6eca4
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
Tor Arne Vestbø 2025-01-31 14:33:54 +01:00
parent 4d95b6dccd
commit fab7ee3695

View File

@ -253,6 +253,10 @@ public:
mainLayout->setSizeConstraint(QLayout::SetFixedSize);
setLayout(mainLayout);
// Enable emoji insertion shortcut on macOS
auto *menuBar = new QMenuBar(this);
menuBar->addMenu("Edit");
setMode(TextRenderer::QtRendering);
setFocusPolicy(Qt::StrongFocus);
setFocus();