]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QIndexDialog.C
some more random changes, added Timeout (make clean if LyX crashes !!)
[lyx.git] / src / frontends / qt2 / QIndexDialog.C
1 /**
2  * \file QIndexDialog.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 "QIndexDialog.h"
10 #include "Dialogs.h"
11 #include "QIndex.h"
12
13 #include <qwidget.h>
14 #include <qpushbutton.h>
15
16 QIndexDialog::QIndexDialog(QIndex * form)
17         : QIndexDialogBase(0, 0, false, 0),
18         form_(form)
19 {
20         connect(okPB, SIGNAL(clicked()),
21                 form, SLOT(slotOK()));
22         connect(closePB, SIGNAL(clicked()),
23                 form, SLOT(slotClose()));
24 }
25
26  
27 QIndexDialog::~QIndexDialog()
28 {
29 }
30
31
32 void QIndexDialog::change_adaptor()
33 {
34         form_->changed();
35 }
36
37  
38 void QIndexDialog::closeEvent(QCloseEvent *e)
39 {
40         form_->slotWMHide();
41         e->accept();
42 }