]> git.lyx.org Git - features.git/commitdiff
some un-intrusie changes first...
authorAndré Pönitz <poenitz@gmx.net>
Fri, 21 Mar 2008 16:33:23 +0000 (16:33 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 21 Mar 2008 16:33:23 +0000 (16:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23875 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiSymbols.cpp
src/frontends/qt4/GuiSymbols.h

index 192b4db3c612950604d5ea3c89657a3ea1791dfd..ac5aac45ee83b815b4b5e389d6f78b89acab7a47 100644 (file)
@@ -146,6 +146,17 @@ UnicodeBlocks unicode_blocks[] = {
 const int no_blocks = sizeof(unicode_blocks) / sizeof(UnicodeBlocks);
 
 
+QString getBlock(char_type c)
+{
+       int i = 0;
+       while (c > unicode_blocks[i].end && i < no_blocks)
+               ++i;
+       if (!unicode_blocks[i].name.isEmpty())
+               return unicode_blocks[i].name;
+       return QString();
+}
+
+
 } // namespace anon
 
 
@@ -348,17 +359,6 @@ void GuiSymbols::updateSymbolList(bool update_combo)
 }
 
 
-QString GuiSymbols::getBlock(char_type c) const
-{
-       int i = 0;
-       while (c > unicode_blocks[i].end && i < no_blocks)
-               ++i;
-       if (!unicode_blocks[i].name.isEmpty())
-               return unicode_blocks[i].name;
-       return QString();
-}
-
-
 void GuiSymbols::dispatchParams()
 {
        dispatch(FuncRequest(getLfun(), fromqstr(chosenLE->text())));
index d15f52da17c82c99026c2619406201f073c0262a..c83f0eafaee0b0fc224b8f72b778180a5cf5017c 100644 (file)
@@ -56,8 +56,6 @@ private:
         *  as well (which is rather expensive)
        **/
        void updateSymbolList(bool update_combo = true);
-       /// get the unicode block associated with \p c
-       QString getBlock(char_type c) const;
        /// the encoding at cursor position
        std::string encoding_;
        /// which blocks do we actually include?