• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A multilingual input method framework


Commit MetaInfo

Revision123b8aba3c0af487e8040ab00842f9e928363cde (tree)
Time2012-11-27 17:12:53
AuthorMuneyuki Noguchi <nogu.dev@gmai...>
CommiterMuneyuki Noguchi

Log Message

Replace toAscii() with toLatin1().

* qt4/immodule/qhelpermanager.cpp

- (QUimHelperManager::parseHelperStr):
Replace QString::toAscii() with QString::toLatin1()
because QString::toAscii() doesn't exist in Qt5 beta2.

* qt5/immodule/quimplatforminputcontext.cpp

- (QUimPlatformInputContext::filterEvent): Ditto.

Change Summary

Incremental Difference

--- a/qt4/immodule/qhelpermanager.cpp
+++ b/qt4/immodule/qhelpermanager.cpp
@@ -132,9 +132,9 @@ void QUimHelperManager::parseHelperStr( const QString &str )
132132
133133 /* convert to unicode */
134134 QTextCodec *codec
135- = QTextCodec::codecForName( charset.toAscii() );
135+ = QTextCodec::codecForName( charset.toLatin1() );
136136 if ( codec && !lines[ 2 ].isEmpty() )
137- commit_str = codec->toUnicode( lines[ 2 ].toAscii() );
137+ commit_str = codec->toUnicode( lines[ 2 ].toLatin1() );
138138 } else {
139139 commit_str = lines[ 1 ];
140140 }
--- a/qt5/immodule/quimplatforminputcontext.cpp
+++ b/qt5/immodule/quimplatforminputcontext.cpp
@@ -231,7 +231,7 @@ bool QUimPlatformInputContext::filterEvent(const QEvent *event)
231231
232232 int key = 0;
233233 if (isascii(qkey) && isprint(qkey)) {
234- int ascii = keyevent->text()[0].toAscii();
234+ int ascii = keyevent->text()[0].toLatin1();
235235 if (isalpha(ascii)) {
236236 key = ascii; // uim needs lower/upper encoded key
237237 } else {