]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QERTDialog.C
Minipage is no more (long live the box inset)
[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
14 #include "QERT.h"
15 #include "QERTDialog.h"
16
17 #include <qpushbutton.h>
18
19
20 QERTDialog::QERTDialog(QERT * form)
21         : QERTDialogBase(0, 0, false, 0),
22         form_(form)
23 {
24         connect(okPB, SIGNAL(clicked()),
25                 form, SLOT(slotOK()));
26         connect(closePB, SIGNAL(clicked()),
27                 form, SLOT(slotClose()));
28 }
29
30
31 void QERTDialog::closeEvent(QCloseEvent * e)
32 {
33         form_->slotWMHide();
34         e->accept();
35 }
36
37
38 void QERTDialog::change_adaptor()
39 {
40         form_->changed();
41 }