From f9ca26af0cca55fbd3993d6d8c650a81b4f89894 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 8 Jan 2013 20:29:11 +0000 Subject: [PATCH] fixes for Qt5 --- src/chatdlg.cpp | 9 +++++++-- src/protocol.cpp | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/chatdlg.cpp b/src/chatdlg.cpp index eb95ce2b..a952b614 100755 --- a/src/chatdlg.cpp +++ b/src/chatdlg.cpp @@ -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 + ); } diff --git a/src/protocol.cpp b/src/protocol.cpp index f820481c..22702a13 100755 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -1788,6 +1788,6 @@ void CProtocol::PutStringOnStream ( CVector& vecIn, { // byte-by-byte copying of the string data PutValOnStream ( vecIn, iPos, - static_cast ( sString[j].toAscii() ), 1 ); + static_cast ( sString[j].toLatin1() ), 1 ); } }