]> git.lyx.org Git - features.git/commitdiff
whatsthis fix
authorJohn Levon <levon@movementarian.org>
Wed, 29 Aug 2001 02:29:26 +0000 (02:29 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 29 Aug 2001 02:29:26 +0000 (02:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2611 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/QIndexDialog.C
src/frontends/qt2/README
src/frontends/qt2/ui/QIndexDialog.ui

index 87985af0ae3b5ff62b1aa47370336f5c47542230..1a28c7c139d93d40928ab68d02c89e59738516e6 100644 (file)
@@ -1,3 +1,10 @@
+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]:
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"));
 }
 
  
index 0c89ddedd1ce57ed0b97be666b77358c72d68ec6..84ddf40a9b7b657638fb321329062bf0e3666262 100644 (file)
@@ -17,7 +17,8 @@ then remember to call form_->changed() at the end (if it has changed !)
  
 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.
index dc0ab1529a37d8b2c05b62b3e46f4d113550e8b2..293f4dadb14757ee9a06446fbcb59b59f910766e 100644 (file)
                         <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>