]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiHyperlink.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiHyperlink.cpp
index b7e7382b5eab0b8775c563dd36d663e0532dd6c6..95ae76a64a09e62819d68632735f1a07e725415e 100644 (file)
@@ -18,7 +18,6 @@
 #include "insets/InsetCommand.h"
 
 #include <QCheckBox>
-#include <QCloseEvent>
 #include <QLineEdit>
 #include <QPushButton>
 
@@ -27,10 +26,9 @@ namespace lyx {
 namespace frontend {
 
 GuiHyperlink::GuiHyperlink(GuiView & lv)
-       : GuiCommand(lv, "href")
+       : GuiCommand(lv, "href",qt_("Hyperlink"))
 {
        setupUi(this);
-       setViewTitle( _("Hyperlink"));
 
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
@@ -63,13 +61,6 @@ void GuiHyperlink::changed_adaptor()
 }
 
 
-void GuiHyperlink::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiHyperlink::updateContents()
 {
        targetED->setText(toqstr(params_["target"]));