* GuiErrorList.{cpp,h}:

- Fix error navigation with the keyboard (bug 4895).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24998 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-05-29 12:37:22 +00:00
parent 228646b5b5
commit fb69a2e3e4
2 changed files with 6 additions and 6 deletions

View File

@ -41,8 +41,8 @@ GuiErrorList::GuiErrorList(GuiView & lv)
connect(closePB, SIGNAL(clicked()),
this, SLOT(slotClose()));
connect(errorsLW, SIGNAL(itemClicked(QListWidgetItem *)),
this, SLOT(select(QListWidgetItem *)));
connect(errorsLW, SIGNAL(itemSelectionChanged()),
this, SLOT(select()));
bc().setPolicy(ButtonPolicy::OkCancelPolicy);
bc().setCancel(closePB);
@ -52,14 +52,14 @@ GuiErrorList::GuiErrorList(GuiView & lv)
void GuiErrorList::showEvent(QShowEvent * e)
{
errorsLW->setCurrentRow(0);
select(errorsLW->item(0));
select();
e->accept();
}
void GuiErrorList::select(QListWidgetItem * wi)
void GuiErrorList::select()
{
int const item = errorsLW->row(wi);
int const item = errorsLW->row(errorsLW->currentItem());
goTo(item);
descriptionTB->setPlainText(toqstr(errorList()[item].description));
}

View File

@ -30,7 +30,7 @@ public:
public Q_SLOTS:
/// select an entry
void select(QListWidgetItem *);
void select();
private:
///