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