]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QShowFileDialog.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / 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
14 #include "QShowFile.h"
15 #include "QShowFileDialog.h"
16
17 #include <qwidget.h>
18 #include <qpushbutton.h>
19
20
21 QShowFileDialog::QShowFileDialog(QShowFile * form)
22         : QShowFileDialogBase(0, 0, false, 0),
23         form_(form)
24 {
25         connect(closePB, SIGNAL(clicked()),
26                 form, SLOT(slotClose()));
27 }
28
29
30 void QShowFileDialog::closeEvent(QCloseEvent * e)
31 {
32         form_->slotWMHide();
33         e->accept();
34 }