* 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
for(; it != end; ++it) {
dialog_->errorsLW->addItem(toqstr(it->error));
}
-
- dialog_->errorsLW->setCurrentRow(0);
- select(dialog_->errorsLW->item(0));
}
} // namespace frontend
e->accept();
}
+
+void QErrorListDialog::showEvent(QShowEvent *e)
+{
+ errorsLW->setCurrentRow(0);
+ form_->select(errorsLW->item(0));
+ e->accept();
+}
+
+
} // namespace frontend
} // namespace lyx
public:
QErrorListDialog(QErrorList * form);
~QErrorListDialog();
+
public Q_SLOTS:
void select_adaptor(QListWidgetItem *);
protected:
- void closeEvent(QCloseEvent * e);
+ void closeEvent(QCloseEvent *);
+ void showEvent(QShowEvent *);
private:
QErrorList * form_;
};