]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QLogDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QLogDialog.C
1 /**
2  * \file QLogDialog.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 "QLogDialog.h"
14 #include "QLog.h"
15
16 #include <QPushButton>
17 #include <QCloseEvent>
18
19
20 namespace lyx {
21 namespace frontend {
22
23 QLogDialog::QLogDialog(QLog * form)
24         : form_(form)
25 {
26         setupUi(this);
27
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30         connect( updatePB, SIGNAL( clicked() ), 
31                 this, SLOT( updateClicked() ) );
32 }
33
34
35 void QLogDialog::closeEvent(QCloseEvent * e)
36 {
37         form_->slotWMHide();
38         e->accept();
39 }
40
41
42 void QLogDialog::updateClicked()
43 {
44         form_->update_contents();
45 }
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #include "QLogDialog_moc.cpp"