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