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 );
|
||||
|
||||
// notify accessibility plugin that text has changed
|
||||
QAccessible::updateAccessibility ( txvChatWindow, 0,
|
||||
QAccessible::ValueChanged );
|
||||
QAccessible::updateAccessibility (
|
||||
#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
|
||||
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