]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QPreamble.C
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QPreamble.C
index e9d15963a68f9ac463d67acea4d58c579ea7075a..a0ef5391029b0d23faab4b2213b807d7b53454eb 100644 (file)
@@ -1,13 +1,14 @@
 /**
  * \file QPreamble.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 <fstream>
 
 #ifdef __GNUG__
 #pragma implementation
@@ -16,7 +17,7 @@
 #include "gettext.h"
 #include "LyXView.h"
 #include "ControlPreamble.h"
+
 #include "QPreamble.h"
 #include "QPreambleDialog.h"
 #include "Qt2BC.h"
@@ -26,6 +27,7 @@
 
 typedef Qt2CB<ControlPreamble, Qt2DB<QPreambleDialog> > base_class;
 
+
 QPreamble::QPreamble()
        : base_class(_("LaTeX Preamble"))
 {
@@ -50,5 +52,5 @@ void QPreamble::update_contents()
 
 void QPreamble::apply()
 {
-       controller().params() = dialog_->preambleLE->text().latin1();
+       controller().params(dialog_->preambleLE->text().latin1());
 }