]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QBibitemDialog.C
fix tooltips in toolbar
[lyx.git] / src / frontends / qt2 / QBibitemDialog.C
1 /**
2  * \file QBibitemDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include <config.h>
10
11 #include "ControlBibitem.h"
12
13 #include <qpushbutton.h>
14 #include <qlineedit.h>
15
16 #include "QBibitemDialog.h"
17 #include "QBibitem.h"
18  
19 QBibitemDialog::QBibitemDialog(QBibitem * form)
20         : QBibitemDialogBase(0, 0, false, 0),
21         form_(form)
22 {
23         connect(okPB, SIGNAL(clicked()),
24                 form, SLOT(slotOK()));
25         connect(closePB, SIGNAL(clicked()),
26                 form, SLOT(slotClose()));
27 }
28
29
30 void QBibitemDialog::change_adaptor()
31 {
32         form_->changed();
33 }
34
35
36 void QBibitemDialog::closeEvent(QCloseEvent *e)
37 {
38         form_->slotWMHide();
39         e->accept();
40 }