]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QURLDialog.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / QURLDialog.C
1 /**
2  * \file QURLDialog.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 "QURL.h"
15 #include "QURLDialog.h"
16
17 #include <qpushbutton.h>
18 #include <qlineedit.h>
19
20
21 QURLDialog::QURLDialog(QURL * form)
22         : QURLDialogBase(0, 0, false, 0),
23         form_(form)
24 {
25         connect(okPB, SIGNAL(clicked()),
26                 form_, SLOT(slotOK()));
27         connect(closePB, SIGNAL(clicked()),
28                 form_, SLOT(slotClose()));
29 }
30
31
32 QURLDialog::~QURLDialog()
33 {
34 }
35
36
37 void QURLDialog::show()
38 {
39         QURLDialogBase::show();
40         urlED->setFocus();
41 }
42
43
44 void QURLDialog::changed_adaptor()
45 {
46         form_->changed();
47 }
48
49
50 void QURLDialog::closeEvent(QCloseEvent * e)
51 {
52         form_->slotWMHide();
53         e->accept();
54 }