fixes for Qt5
This commit is contained in:
parent
547dbf8e9a
commit
f9ca26af0c
2 changed files with 8 additions and 3 deletions
|
@ -94,6 +94,11 @@ void CChatDlg::AddChatText ( QString strChatText )
|
||||||
txvChatWindow->append ( strChatText );
|
txvChatWindow->append ( strChatText );
|
||||||
|
|
||||||
// notify accessibility plugin that text has changed
|
// notify accessibility plugin that text has changed
|
||||||
QAccessible::updateAccessibility ( txvChatWindow, 0,
|
QAccessible::updateAccessibility (
|
||||||
QAccessible::ValueChanged );
|
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||||
|
txvChatWindow, 0, QAccessible::ValueChanged
|
||||||
|
#else
|
||||||
|
new QAccessibleEvent ( txvChatWindow, QAccessible::ValueChanged )
|
||||||
|
#endif
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1788,6 +1788,6 @@ void CProtocol::PutStringOnStream ( CVector<uint8_t>& vecIn,
|
||||||
{
|
{
|
||||||
// byte-by-byte copying of the string data
|
// byte-by-byte copying of the string data
|
||||||
PutValOnStream ( vecIn, iPos,
|
PutValOnStream ( vecIn, iPos,
|
||||||
static_cast<uint32_t> ( sString[j].toAscii() ), 1 );
|
static_cast<uint32_t> ( sString[j].toLatin1() ), 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue