[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp

Zongyi Zhang freebody.kst at gmail.com
Fri Apr 16 20:33:28 CEST 2010


SVN commit 1115532 by zhang:

qwhatsthis

 M  +4 -6      kstfitdialog.cpp  
 M  +3 -4      kstviewlabelwidget.cpp  


--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstfitdialog.cpp #1115531:1115532
@@ -401,12 +401,10 @@
     widget->show();
 
     if (!(*it)._description.isEmpty()) {
-/* xxx
-      QWhatsThis::remove(label);
-      QWhatsThis::remove(widget);
-      QWhatsThis::add(label, (*it)._description);
-      QWhatsThis::add(widget, (*it)._description);
-*/
+      label->setWhatsThis("");;
+      widget->setWhatsThis("");
+      label->setWhatsThis((*it)._description);
+      widget->setWhatsThis((*it)._description);
     }
 
     ++cnt;
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstviewlabelwidget.cpp #1115531:1115532
@@ -18,7 +18,6 @@
 #include <QLabel>
 #include <QString>
 #include <QTextEdit>
-#include <QWhatsThis>
 #include <QComboBox>
 
 #include "kstviewlabelwidget.h"
@@ -38,9 +37,9 @@
 
   connect(_scalars, SIGNAL(selectionChanged(const QString &)), this, SLOT(insertScalarInText(const QString &)));
   connect(_strings, SIGNAL(selectionChanged(const QString &)), this, SLOT(insertStringInText(const QString &)));
-/* xxx
-  QWhatsThis::add(_text, QObject::tr("<qt>The syntax for labels is a derivative of a subset of LaTeX.  Supported syntax is: <b>\\[greeklettername]</b> and <b>\\[Greeklettername]</b>, <b>\\approx</b>, <b>\\cdot</b>, <b>\\ge</b>, <b>\\geq</b>, <b>\\inf</b>, <b>\\int</b>, <b>\\le</b>, <b>\\leq</b>, <b>\\ne</b>, <b>\\n</b>, <b>\\partial</b>, <b>\\prod</b>, <b>\\pm</b>, <b>\\textcolor{color name}{colored text}</b>, <b>\\textbf{bold text}</b>, <b>\\textit{italicized text}</b>, <b>\\t</b>, <b>\\sum</b>, <b>\\sqrt</b>, <b>\\underline{underlined text}</b>, <b>x^y</b>, <b>x_y</b>.  Scalars, equations, and vector elements can be embedded.  Scalar: <i>[V1/Mean]</i>.  Vector Element: <i>[V1[4]]</i>.  Equation: <i>[=[V1/Mean]^2]</i>.  A [ character can be inserted as <i>\\[</i>."));
-*/
+
+  _text->setWhatsThis(QObject::tr("<qt>The syntax for labels is a derivative of a subset of LaTeX.  Supported syntax is: <b>\\[greeklettername]</b> and <b>\\[Greeklettername]</b>, <b>\\approx</b>, <b>\\cdot</b>, <b>\\ge</b>, <b>\\geq</b>, <b>\\inf</b>, <b>\\int</b>, <b>\\le</b>, <b>\\leq</b>, <b>\\ne</b>, <b>\\n</b>, <b>\\partial</b>, <b>\\prod</b>, <b>\\pm</b>, <b>\\textcolor{color name}{colored text}</b>, <b>\\textbf{bold text}</b>, <b>\\textit{italicized text}</b>, <b>\\t</b>, <b>\\sum</b>, <b>\\sqrt</b>, <b>\\underline{underlined text}</b>, <b>x^y</b>, <b>x_y</b>.  Scalars, equations, and vector elements can be embedded.  Scalar: <i>[V1/Mean]</i>.  Vector Element: <i>[V1[4]]</i>.  Equation: <i>[=[V1/Mean]^2]</i>.  A [ character can be inserted as <i>\\[</i>."));
+
 }
 
 


More information about the Kst mailing list