]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QERTDialog.C
Lots and lots of little trivial bits.
[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 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "QERT.h"
18 #include "QERTDialog.h"
19
20 #include <qpushbutton.h>
21
22 QERTDialog::QERTDialog(QERT * form)
23         : QERTDialogBase(0, 0, false, 0),
24         form_(form)
25 {
26         connect(okPB, SIGNAL(clicked()),
27                 form, SLOT(slotOK()));
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30 }
31
32
33 void QERTDialog::closeEvent(QCloseEvent * e)
34 {
35         form_->slotWMHide();
36         e->accept();
37 }
38
39
40 void QERTDialog::change_adaptor()
41 {
42         form_->changed();
43 }