]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QERTDialog.C
partial fonts fix. Like Juergen said we really need our own dialog.
[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
23 QERTDialog::QERTDialog(QERT * form)
24         : QERTDialogBase(0, 0, false, 0),
25         form_(form)
26 {
27         connect(okPB, SIGNAL(clicked()),
28                 form, SLOT(slotOK()));
29         connect(closePB, SIGNAL(clicked()),
30                 form, SLOT(slotClose()));
31 }
32
33
34 void QERTDialog::closeEvent(QCloseEvent * e)
35 {
36         form_->slotWMHide();
37         e->accept();
38 }
39
40
41 void QERTDialog::change_adaptor()
42 {
43         form_->changed();
44 }