winrt: Use list initialization for KeyInfo's members
Change-Id: Idd05d1e1332efd9afc9816a48437fee377730735 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
This commit is contained in:
parent
eb77a24faa
commit
11e37a0e8c
@ -100,27 +100,17 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
struct KeyInfo {
|
struct KeyInfo {
|
||||||
KeyInfo()
|
KeyInfo()
|
||||||
: virtualKey(0)
|
|
||||||
, isAutoRepeat(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
KeyInfo(const QString &text, quint32 virtualKey)
|
|
||||||
: text(text)
|
|
||||||
, virtualKey(virtualKey)
|
|
||||||
, isAutoRepeat(false)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyInfo(quint32 virtualKey)
|
KeyInfo(quint32 virtualKey)
|
||||||
: virtualKey(virtualKey)
|
: virtualKey(virtualKey)
|
||||||
, isAutoRepeat(false)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
QString text;
|
QString text;
|
||||||
quint32 virtualKey;
|
quint32 virtualKey{0};
|
||||||
bool isAutoRepeat;
|
bool isAutoRepeat{false};
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline Qt::ScreenOrientations qtOrientationsFromNative(DisplayOrientations native)
|
static inline Qt::ScreenOrientations qtOrientationsFromNative(DisplayOrientations native)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user