]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QCitation.C
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QCitation.C
index 7b57544afefe264c232e69962294a64323d3b1b9..03fcd326c64c000033028cb9659832d5e3d2c76a 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \file QCitation.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 Angus Leeming <a.leeming@ic.ac.uk>
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Angus Leeming
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -41,8 +43,9 @@ using std::vector;
 
 typedef Qt2CB<ControlCitation, Qt2DB<QCitationDialog> > base_class;
 
-QCitation::QCitation(ControlCitation & c)
-       : base_class(c, _("Citation"))
+
+QCitation::QCitation()
+       : base_class(_("Citation"))
 {}
 
 
@@ -61,7 +64,7 @@ void QCitation::apply()
        controller().params().setCmdName(command);
        controller().params().setContents(getStringFromVector(citekeys));
 
-       string const after  = dialog_->textAfterED->text().latin1();
+       string const after = dialog_->textAfterED->text().latin1();
        controller().params().setOptions(after);
 }
 
@@ -172,16 +175,16 @@ void QCitation::update_contents()
 }
 
 
-void QCitation::updateBrowser(QListBox* browser,
+void QCitation::updateBrowser(QListBox * browser,
                                  vector<string> const & keys) const
 {
        browser->clear();
 
        for (vector<string>::const_iterator it = keys.begin();
                it < keys.end(); ++it) {
-               string const key = frontStrip(strip(*it));
+               string const key = trim(*it);
                // FIXME: why the .empty() test ?
-               if(!key.empty())
+               if (!key.empty())
                        browser->insertItem(key.c_str());
        }
 }