some un-intrusie changes first...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-03-21 16:33:23 +00:00
parent 1382dfe88d
commit 1f2cee9589
2 changed files with 11 additions and 13 deletions

View 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())));

View 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?