]> git.lyx.org Git - lyx.git/commit
Make string conversion work with non-ucs2-characters if using qt 4.2
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 4 Dec 2006 13:50:46 +0000 (13:50 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 4 Dec 2006 13:50:46 +0000 (13:50 +0000)
commitc4320d24cd2d29c2e77958b4a8fd44f2bd587ca7
tree2653aea2b118153250b81672c32a961830ec8a93
parent015abe1a5ac891f4219a21bfa90cc9293d6c6373
Make string conversion work with non-ucs2-characters if using qt 4.2

* src/frontends/qt4/qt_helpers.[Ch]
(toqstr): Use QString::fromUcs4 if the qt version is at
least 4.2.
(qstring_to_ucs4): Use QString::toUcs4 if the qt version is at
least 4.2
(ucs4_to_qstring): Delete to avoid confusion, since it was only
used in one place

* src/frontends/qt4/panelstack.C
(PanelStack::addCategory): Use toqstr instead of ucs4_to_qstring

* src/support/unicode.[Ch]
(ucs2_to_ucs4): Replace with utf16_to_ucs4
(ucs4_to_ucs2): Replace with ucs4_to_utf16

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16169 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/panelstack.C
src/frontends/qt4/qt_helpers.C
src/frontends/qt4/qt_helpers.h
src/support/unicode.C
src/support/unicode.h