]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QShowFileDialog.C
This new citation dialog follows a new design similar to lyx-1.3:
[lyx.git] / src / frontends / qt4 / QShowFileDialog.C
1 /**
2  * \file QShowFileDialog.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 "QShowFileDialog.h"
14 #include "QShowFile.h"
15
16 #include <qpushbutton.h>
17 //Added by qt3to4:
18 #include <QCloseEvent>
19
20 namespace lyx {
21 namespace frontend {
22
23 QShowFileDialog::QShowFileDialog(QShowFile * form)
24         : form_(form)
25 {
26         setupUi(this);
27
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30 }
31
32
33 void QShowFileDialog::closeEvent(QCloseEvent * e)
34 {
35         form_->slotWMHide();
36         e->accept();
37 }
38
39 } // namespace frontend
40 } // namespace lyx