Fix -Wdeprecated-anon-enum-enum-conversion issue in cocoa plugin
Noticed when building with -c++std c++20 for macOS. Lots more warnings in general but this one was an error. Change-Id: I8dd9ae33f23dd77b2ec619b7357f50b97e3ed8ef Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
9f0dc59cd6
commit
b38002518e
@ -130,8 +130,8 @@
|
||||
newlineEvent.key = isEnter ? Qt::Key_Enter : Qt::Key_Return;
|
||||
newlineEvent.text = isEnter ? QLatin1Char(kEnterCharCode)
|
||||
: QLatin1Char(kReturnCharCode);
|
||||
newlineEvent.nativeVirtualKey = isEnter ? kVK_ANSI_KeypadEnter
|
||||
: kVK_Return;
|
||||
newlineEvent.nativeVirtualKey = isEnter ? quint32(kVK_ANSI_KeypadEnter)
|
||||
: quint32(kVK_Return);
|
||||
|
||||
qCDebug(lcQpaKeys) << "Inserting newline via" << newlineEvent;
|
||||
newlineEvent.sendWindowSystemEvent(m_platformWindow->window());
|
||||
|
Loading…
x
Reference in New Issue
Block a user