deprecated API fixed
This commit is contained in:
parent
b50920c72b
commit
e93456ddd8
@ -354,8 +354,14 @@ void QskVirtualKeyboard::ensureButtons()
|
|||||||
if( newButtonSize == oldButtonSize )
|
if( newButtonSize == oldButtonSize )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const auto autoRepeatInterval =
|
const auto hints = QGuiApplication::styleHints();
|
||||||
1000 / QGuiApplication::styleHints()->keyboardAutoRepeatRate();
|
|
||||||
|
auto autoRepeatInterval = 1000.0;
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK( 6, 5, 0 )
|
||||||
|
autoRepeatInterval /= hints->keyboardAutoRepeatRateF();
|
||||||
|
#else
|
||||||
|
autoRepeatInterval /= hints->keyboardAutoRepeatRate();
|
||||||
|
#endif
|
||||||
|
|
||||||
m_data->keyButtons.reserve( rowCount() * columnCount() );
|
m_data->keyButtons.reserve( rowCount() * columnCount() );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user