fixes for Qt5

This commit is contained in:
Volker Fischer 2013-01-08 20:29:11 +00:00
parent 547dbf8e9a
commit f9ca26af0c
2 changed files with 8 additions and 3 deletions

View file

@ -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
);
}

View file

@ -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 );
}
}