]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QShowFileDialog.C
The initial merge of the Qt frontend, and the necessary compile fixes.
[lyx.git] / src / frontends / qt2 / QShowFileDialog.C
1 /**
2  * \file QShowFileDialog.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 "QShowFile.h"
10 #include "QShowFileDialog.h"
11
12 #include <qwidget.h>
13 #include <qpushbutton.h>
14
15 QShowFileDialog::QShowFileDialog(QShowFile * form)
16         : QShowFileDialogBase(0, 0, false, 0),
17         form_(form)
18 {
19         connect(closePB, SIGNAL(clicked()),
20                 form, SLOT(slotClose()));
21 }
22
23
24 void QShowFileDialog::closeEvent(QCloseEvent * e)
25 {
26         form_->slotWMHide();
27         e->accept();
28 }