+2001-08-29 John Levon <moz@compsoc.man.ac.uk>
+
+ * ui/QIndexDialog.ui:
+ * QIndexDialog.C: add QWhatsThis in C source
+
+ * README: document this restriction
+
2001-08-29 John Levon <moz@compsoc.man.ac.uk>
* QMinipage.[Ch]:
* \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),
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"));
}
Every non-trivial widget should have a tooltip. If you don't know
what to write, write "FIXME", and it can fixed later. Don't be afraid
-to use QWhatsThis too (e.g. the index dialog)
+to use QWhatsThis too, but this must be done in the derived class's
+constructor, and use _("...").
If necessary, you should override Qt2Base::isValid() for determining the validity
of the current dialog's contents.
<name>toolTip</name>
<string>Index entry</string>
</property>
- <property>
- <name>whatsThis</name>
- <string>The format of the entry in the index.
-
-An entry can be specified as a sub-entry of
-another with "!" :
-
-cars!mileage
-
-You can cross-refer to another entry like so :
-
-cars!mileage|see{economy}
-
-For further details refer to the local LaTeX
-documentation.</string>
- </property>
</widget>
</hbox>
</widget>