]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QURLDialog.C
some more random changes, added Timeout (make clean if LyX crashes !!)
[lyx.git] / src / frontends / qt2 / QURLDialog.C
1 /**
2  * \file QURLDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #include <config.h>
10  
11 #include "QURLDialog.h"
12 #include "Dialogs.h"
13 #include "QURL.h"
14
15 QURLDialog::QURLDialog(QURL * form, QWidget * parent,  const char * name, bool modal, WFlags fl)
16         : QURLDialogBase(parent, name, modal, fl),
17         form_(form)
18 {
19 }
20
21  
22 QURLDialog::~QURLDialog()
23 {
24 }
25
26  
27 void QURLDialog::apply_adaptor()
28 {
29         form_->apply();
30         form_->close();
31         hide();
32 }
33
34
35 void QURLDialog::close_adaptor()
36 {
37         form_->close();
38         hide();
39 }
40
41  
42 void QURLDialog::closeEvent(QCloseEvent * e)
43 {
44         form_->close();
45         e->accept();
46 }