]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QShowFileDialog.C
better selection and scrolling behaviour
[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 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "QShowFile.h"
18 #include "QShowFileDialog.h"
19
20 #include <qwidget.h>
21 #include <qpushbutton.h>
22
23
24 QShowFileDialog::QShowFileDialog(QShowFile * form)
25         : QShowFileDialogBase(0, 0, false, 0),
26         form_(form)
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 }