]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/QIndexDialog.C
whatsthis fix
[features.git] / src / frontends / qt2 / QIndexDialog.C
index 2f12f9c15242d3f8b496eb188eb667c8654699f2..48572ab5b96a33bbdb1b69472c2f30e5a34bd6ad 100644 (file)
@@ -6,12 +6,16 @@
  * \author John Levon <moz@compsoc.man.ac.uk>
  */
 
+#include <config.h>
+
 #include "QIndexDialog.h"
 #include "Dialogs.h"
 #include "QIndex.h"
+#include "gettext.h"
 
-#include <qwidget.h>
 #include <qpushbutton.h>
+#include <qlineedit.h>
+#include <qwhatsthis.h>
 
 QIndexDialog::QIndexDialog(QIndex * form)
        : QIndexDialogBase(0, 0, false, 0),
@@ -21,6 +25,21 @@ QIndexDialog::QIndexDialog(QIndex * form)
                form, SLOT(slotOK()));
        connect(closePB, SIGNAL(clicked()),
                form, SLOT(slotClose()));
+
+       QWhatsThis::add(keywordED, _(
+"The format of the entry in the index.\n"
+"\n"
+"An entry can be specified as a sub-entry of\n"
+"another with \"!\" :\n"
+"\n"
+"cars!mileage\n"
+"\n"
+"You can cross-refer to another entry like so :\n"
+"\n"
+"cars!mileage|see{economy}\n"
+"\n"
+"For further details refer to the local LaTeX\n"
+"documentation.\n"));
 }