mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* 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:
parent
228646b5b5
commit
fb69a2e3e4
@ -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));
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
|
||||
public Q_SLOTS:
|
||||
/// select an entry
|
||||
void select(QListWidgetItem *);
|
||||
void select();
|
||||
|
||||
private:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user