]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QErrorDialog.C
The initial merge of the Qt frontend, and the necessary compile fixes.
[lyx.git] / src / frontends / qt2 / QErrorDialog.C
1 /**
2  * \file QErrorDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include <config.h>
10  
11 #include "QError.h"
12  
13 #include <qwidget.h>
14 #include <qpushbutton.h>
15
16 #include "QErrorDialog.h"
17
18 QErrorDialog::QErrorDialog(QError * form)
19         : QErrorDialogBase(0, 0, false, 0),
20         form_(form)
21 {
22         connect(closePB, SIGNAL(clicked()),
23                 form, SLOT(slotClose()));
24 }
25
26
27 void QErrorDialog::closeEvent(QCloseEvent * e)
28 {
29         form_->slotWMHide();
30         e->accept();
31 }