gui: accessible - silence int conversion warning
msvc2019 emits: warning C4244: 'argument': conversion from 'qsizetype' to 'int', possible loss of data Change-Id: I286c0d453f69654ba58f071aee28e557b9f9058d Pick-to: 6.1 6.2 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
This commit is contained in:
parent
d8dbc2b95a
commit
52b2346742
@ -819,13 +819,13 @@ class Q_GUI_EXPORT QAccessibleTextInsertEvent : public QAccessibleTextCursorEven
|
||||
{
|
||||
public:
|
||||
inline QAccessibleTextInsertEvent(QObject *obj, int position, const QString &text)
|
||||
: QAccessibleTextCursorEvent(obj, position + text.length())
|
||||
: QAccessibleTextCursorEvent(obj, position + int(text.length()))
|
||||
, m_position(position), m_text(text)
|
||||
{
|
||||
m_type = QAccessible::TextInserted;
|
||||
}
|
||||
inline QAccessibleTextInsertEvent(QAccessibleInterface *iface, int position, const QString &text)
|
||||
: QAccessibleTextCursorEvent(iface, position + text.length())
|
||||
: QAccessibleTextCursorEvent(iface, position + int(text.length()))
|
||||
, m_position(position), m_text(text)
|
||||
{
|
||||
m_type = QAccessible::TextInserted;
|
||||
@ -879,13 +879,13 @@ class Q_GUI_EXPORT QAccessibleTextUpdateEvent : public QAccessibleTextCursorEven
|
||||
{
|
||||
public:
|
||||
inline QAccessibleTextUpdateEvent(QObject *obj, int position, const QString &oldText, const QString &text)
|
||||
: QAccessibleTextCursorEvent(obj, position + text.length())
|
||||
: QAccessibleTextCursorEvent(obj, position + int(text.length()))
|
||||
, m_position(position), m_oldText(oldText), m_text(text)
|
||||
{
|
||||
m_type = QAccessible::TextUpdated;
|
||||
}
|
||||
inline QAccessibleTextUpdateEvent(QAccessibleInterface *iface, int position, const QString &oldText, const QString &text)
|
||||
: QAccessibleTextCursorEvent(iface, position + text.length())
|
||||
: QAccessibleTextCursorEvent(iface, position + int(text.length()))
|
||||
, m_position(position), m_oldText(oldText), m_text(text)
|
||||
{
|
||||
m_type = QAccessible::TextUpdated;
|
||||
|
Loading…
Reference in New Issue
Block a user