]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QIndex.C
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QIndex.C
index f1c39be96bb23c3271b50210230930dbb95a3a5d..1ea3871e8dda7439b995e76426bbfa18eaf5dcc2 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \file QIndex.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>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "ControlIndex.h"
 #include "gettext.h"
 
@@ -19,6 +25,7 @@
 
 typedef Qt2CB<ControlIndex, Qt2DB<QIndexDialog> > base_class;
 
+
 QIndex::QIndex()
        : base_class(_("Index"))
 {
@@ -49,5 +56,5 @@ void QIndex::apply()
 
 bool QIndex::isValid()
 {
-       return !string(dialog_->keywordED->text()).empty();
+       return !dialog_->keywordED->text().isEmpty();
 }