Commit 992f9e45 authored by Volker Krause's avatar Volker Krause
Browse files

Adapt to QKeyCombination API changes

parent d81762d2
......@@ -826,7 +826,13 @@ namespace Oxygen
//_______________________________________________________________________
Qt::Key Simulator::toKey( QChar a ) const
{ return (Qt::Key) QKeySequence( a )[0]; }
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
return (Qt::Key) QKeySequence( a )[0];
#else
return QKeySequence(a)[0].key();
#endif
}
//_______________________________________________________________________
void Simulator::postQEvent( QWidget* receiver, QEvent* event ) const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment