]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QErrorListDialog.C
fix math fonts with LyX/Mac
[lyx.git] / src / frontends / qt2 / QErrorListDialog.C
1 /**
2  * \file QErrorListDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Alfredo Braunstein
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "QErrorListDialog.h"
14 #include "QErrorList.h"
15
16 #include <qlistbox.h>
17 #include <qpushbutton.h>
18
19 namespace lyx {
20 namespace frontend {
21
22 QErrorListDialog::QErrorListDialog(QErrorList * form)
23         : QErrorListDialogBase(0, 0, false, 0),
24         form_(form)
25 {
26         connect(closePB, SIGNAL(clicked()),
27                 form, SLOT(slotClose()));
28         connect(errorsLB, SIGNAL(returnPressed(QListBoxItem *)),
29                 form, SLOT(slotClose()));
30 }
31
32
33 QErrorListDialog::~QErrorListDialog()
34 {}
35
36
37 void QErrorListDialog::select_adaptor(int item)
38 {
39         form_->select(item);
40 }
41
42
43 void QErrorListDialog::closeEvent(QCloseEvent * e)
44 {
45         form_->slotWMHide();
46         e->accept();
47 }
48
49 } // namespace frontend
50 } // namespace lyx