]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QThesaurus.C
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QThesaurus.C
index c8862e718f12b756463632df447b15287e576ac2..76b2578c7e80c1c3a04d04f1f0254351c95503f9 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file QThesaurus.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 <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 #include <qlistbox.h>
 
 typedef Qt2CB<ControlThesaurus, Qt2DB<QThesaurusDialog> > base_class;
-QThesaurus::QThesaurus(ControlThesaurus & c)
-       : base_class(c, _("Thesaurus"))
+
+
+QThesaurus::QThesaurus()
+       : base_class(_("Thesaurus"))
 {
 }
 
@@ -40,14 +43,15 @@ void QThesaurus::build_dialog()
        bc().addReadOnly(dialog_->replacePB);
 }
 
+
 void QThesaurus::update_contents()
 {
        dialog_->entryED->setText(controller().text().c_str());
-       dialog_->updateLists(); 
+       dialog_->replaceED->setText("");
+       dialog_->updateLists();
 }
 
+
 void QThesaurus::replace()
 {
        controller().replace(dialog_->replaceED->text().latin1());