]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QErrorDialog.C
better selection and scrolling behaviour
[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 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "QError.h"
18
19 #include <qwidget.h>
20 #include <qpushbutton.h>
21
22 #include "QErrorDialog.h"
23
24
25 QErrorDialog::QErrorDialog(QError * form)
26         : QErrorDialogBase(0, 0, false, 0),
27         form_(form)
28 {
29         connect(closePB, SIGNAL(clicked()),
30                 form, SLOT(slotClose()));
31 }
32
33
34 void QErrorDialog::closeEvent(QCloseEvent * e)
35 {
36         form_->slotWMHide();
37         e->accept();
38 }