Patch from Edwin - spellcheck typos.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150327.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29365 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-04-21 21:06:21 +00:00
parent adab0618e7
commit 3ea345b90f
3 changed files with 9 additions and 9 deletions

View File

@ -90,7 +90,7 @@ void GuiSpellchecker::on_closePB_clicked()
}
void GuiSpellchecker::on_suggestionsLW_changed(QListWidgetItem * item)
void GuiSpellchecker::on_suggestionsLW_itemChanged(QListWidgetItem * item)
{
if (d->ui.replaceCO->count() != 0)
d->ui.replaceCO->setItemText(0, item->text());
@ -101,7 +101,7 @@ void GuiSpellchecker::on_suggestionsLW_changed(QListWidgetItem * item)
}
void GuiSpellchecker::on_replaceC0_highlighted(const QString & str)
void GuiSpellchecker::on_replaceCO_highlighted(const QString & str)
{
QListWidget * lw = d->ui.suggestionsLW;
if (lw->currentItem() && lw->currentItem()->text() == str)
@ -123,7 +123,7 @@ void GuiSpellchecker::updateView()
}
void GuiSpellchecker::on_replaceAllPB_clicked()
void GuiSpellchecker::on_ignoreAllPB_clicked()
{
/// replace all occurances of word
theSpellChecker()->accept(d->word_);
@ -169,13 +169,13 @@ void GuiSpellchecker::updateSuggestions(docstring_list & words)
lw->clear();
if (words.empty()) {
on_suggestionsLW_changed(new QListWidgetItem(suggestion));
on_suggestionsLW_itemChanged(new QListWidgetItem(suggestion));
return;
}
for (size_t i = 0; i != words.size(); ++i)
lw->addItem(toqstr(words[i]));
on_suggestionsLW_changed(lw->item(0));
on_suggestionsLW_itemChanged(lw->item(0));
lw->setCurrentRow(0);
}

View File

@ -35,9 +35,9 @@ public:
private Q_SLOTS:
void on_closePB_clicked();
void on_suggestionsLW_changed(QListWidgetItem *);
void on_replaceC0_highlighted(const QString & str);
void on_replaceAllPB_clicked();
void on_suggestionsLW_itemChanged(QListWidgetItem *);
void on_replaceCO_highlighted(const QString & str);
void on_ignoreAllPB_clicked();
void on_addPB_clicked();
void on_ignorePB_clicked();
void on_replacePB_clicked();

View File

@ -103,7 +103,7 @@
</widget>
</item>
<item row="6" column="1" >
<widget class="QPushButton" name="replacePB_3" >
<widget class="QPushButton" name="ignoreAllPB" >
<property name="toolTip" >
<string>Ignore this word throughout this session</string>
</property>