mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* QErrorList::update_contents(): avoid touching the dialog here.
* QErrorListDialog::showEvent(): new method. Set the error on the first item. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16848 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
db4499f4b1
commit
2a1da61470
@ -57,9 +57,6 @@ void QErrorList::update_contents()
|
|||||||
for(; it != end; ++it) {
|
for(; it != end; ++it) {
|
||||||
dialog_->errorsLW->addItem(toqstr(it->error));
|
dialog_->errorsLW->addItem(toqstr(it->error));
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog_->errorsLW->setCurrentRow(0);
|
|
||||||
select(dialog_->errorsLW->item(0));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
|
@ -49,6 +49,15 @@ void QErrorListDialog::closeEvent(QCloseEvent * e)
|
|||||||
e->accept();
|
e->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void QErrorListDialog::showEvent(QShowEvent *e)
|
||||||
|
{
|
||||||
|
errorsLW->setCurrentRow(0);
|
||||||
|
form_->select(errorsLW->item(0));
|
||||||
|
e->accept();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
|
@ -29,10 +29,12 @@ class QErrorListDialog : public QDialog, public Ui::QErrorListUi {
|
|||||||
public:
|
public:
|
||||||
QErrorListDialog(QErrorList * form);
|
QErrorListDialog(QErrorList * form);
|
||||||
~QErrorListDialog();
|
~QErrorListDialog();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void select_adaptor(QListWidgetItem *);
|
void select_adaptor(QListWidgetItem *);
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent * e);
|
void closeEvent(QCloseEvent *);
|
||||||
|
void showEvent(QShowEvent *);
|
||||||
private:
|
private:
|
||||||
QErrorList * form_;
|
QErrorList * form_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user