]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QERTDialog.C
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / qt2 / QERTDialog.C
1 /**
2  * \file QERTDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "QERTDialog.h"
14 #include "QERT.h"
15
16 #include <qpushbutton.h>
17
18 namespace lyx {
19 namespace frontend {
20
21 QERTDialog::QERTDialog(QERT * form)
22         : QERTDialogBase(0, 0, false, 0),
23         form_(form)
24 {
25         connect(okPB, SIGNAL(clicked()),
26                 form, SLOT(slotOK()));
27         connect(closePB, SIGNAL(clicked()),
28                 form, SLOT(slotClose()));
29 }
30
31
32 void QERTDialog::closeEvent(QCloseEvent * e)
33 {
34         form_->slotWMHide();
35         e->accept();
36 }
37
38
39 void QERTDialog::change_adaptor()
40 {
41         form_->changed();
42 }
43
44 } // namespace frontend
45 } // namespace lyx