]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QURLDialog.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / QURLDialog.C
index af3694bf36d28f70a5f091f82e55fa157310595a..17495950eb4cc267805fc0d78549c26c6aa111de 100644 (file)
@@ -1,18 +1,22 @@
 /**
  * \file QURLDialog.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
-#include <qpushbutton.h>
-#include "QURLDialog.h"
-#include "Dialogs.h"
+
+
 #include "QURL.h"
+#include "QURLDialog.h"
+
+#include <qpushbutton.h>
+#include <qlineedit.h>
+
 
 QURLDialog::QURLDialog(QURL * form)
        : QURLDialogBase(0, 0, false, 0),
@@ -24,12 +28,19 @@ QURLDialog::QURLDialog(QURL * form)
                form_, SLOT(slotClose()));
 }
 
+
 QURLDialog::~QURLDialog()
 {
 }
 
+
+void QURLDialog::show()
+{
+       QURLDialogBase::show();
+       urlED->setFocus();
+}
+
+
 void QURLDialog::changed_adaptor()
 {
        form_->changed();