]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QShowFileDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[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>
17 #include <QCloseEvent>
18
19 namespace lyx {
20 namespace frontend {
21
22 QShowFileDialog::QShowFileDialog(QShowFile * form)
23         : form_(form)
24 {
25         setupUi(this);
26
27         connect(closePB, SIGNAL(clicked()),
28                 form, SLOT(slotClose()));
29 }
30
31
32 void QShowFileDialog::closeEvent(QCloseEvent * e)
33 {
34         form_->slotWMHide();
35         e->accept();
36 }
37
38 } // namespace frontend
39 } // namespace lyx
40
41 #include "QShowFileDialog_moc.cpp"