mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23903 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cf2320996b
commit
d8ab0622c5
@ -383,13 +383,14 @@ void GuiSymbols::on_categoryFilterCB_toggled(bool on)
|
||||
|
||||
void GuiSymbols::scrollToItem(QString const & category)
|
||||
{
|
||||
if (used_blocks.find(category) != used_blocks.end()) {
|
||||
int row = used_blocks[category];
|
||||
QModelIndex index = symbolsLW->model()->index(row, 0, QModelIndex());
|
||||
symbolsLW->scrollTo(index, QAbstractItemView::PositionAtTop);
|
||||
}
|
||||
if (used_blocks.find(category) == used_blocks.end())
|
||||
return;
|
||||
int row = used_blocks[category];
|
||||
QModelIndex index = symbolsLW->model()->index(row, 0, QModelIndex());
|
||||
symbolsLW->scrollTo(index, QAbstractItemView::PositionAtTop);
|
||||
}
|
||||
|
||||
|
||||
void GuiSymbols::updateSymbolList(bool update_combo)
|
||||
{
|
||||
QString category = categoryCO->currentText();
|
||||
@ -424,8 +425,7 @@ void GuiSymbols::updateSymbolList(bool update_combo)
|
||||
#if QT_VERSION >= 0x040300
|
||||
QChar::Category const cat = QChar::category(uint(c));
|
||||
#else
|
||||
QChar const qc = uint(c);
|
||||
QChar::Category const cat = qc.category();
|
||||
QChar::Category const cat = QChar(uint(c)).category();
|
||||
#endif
|
||||
// we do not want control or space characters
|
||||
if (cat == QChar::Other_Control || cat == QChar::Separator_Space)
|
||||
|
Loading…
Reference in New Issue
Block a user