]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QBibitemDialog.C
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / qt2 / QBibitemDialog.C
1 /**
2  * \file QBibitemDialog.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 "QBibitemDialog.h"
14 #include "QBibitem.h"
15
16 #include <qpushbutton.h>
17
18 namespace lyx {
19 namespace frontend {
20
21 QBibitemDialog::QBibitemDialog(QBibitem * form)
22         : QBibitemDialogBase(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 QBibitemDialog::change_adaptor()
33 {
34         form_->changed();
35 }
36
37
38 void QBibitemDialog::closeEvent(QCloseEvent *e)
39 {
40         form_->slotWMHide();
41         e->accept();
42 }
43
44 } // namespace frontend
45 } // namespace lyx