]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QBibitemDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / 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
15 #include <qpushbutton.h>
16 //Added by qt3to4:
17 #include <QCloseEvent>
18
19 namespace lyx {
20 namespace frontend {
21
22 QBibitemDialog::QBibitemDialog(QBibitem * form)
23         : form_(form)
24 {
25         setupUi(this);
26         connect(okPB, SIGNAL(clicked()),
27                 form, SLOT(slotOK()));
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30
31     connect( keyED, SIGNAL( textChanged(const QString&) ), this, SLOT( change_adaptor() ) );
32     connect( labelED, SIGNAL( textChanged(const QString&) ), this, SLOT( change_adaptor() ) );
33 }
34
35
36 void QBibitemDialog::change_adaptor()
37 {
38         form_->changed();
39 }
40
41
42 void QBibitemDialog::closeEvent(QCloseEvent *e)
43 {
44         form_->slotWMHide();
45         e->accept();
46 }
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #include "QBibitemDialog_moc.cpp"