Commit a43c0c5f authored by Matthias Messmer's avatar Matthias Messmer

adjusted some What's This bubbles

svn path=/trunk/kdeedu/kmplot/; revision=295884
parent 09a9cf6b
......@@ -25,6 +25,7 @@
// Qt includes
#include <qcheckbox.h>
#include <qlabel.h>
#include <qwhatsthis.h>
// KDE includes
#include <kcolorbutton.h>
......@@ -62,12 +63,15 @@ void KEditFunction::setVisibleWidgets()
{
case Function:
this->setCaption( i18n( "Edit Function Plot" ) );
kLineEditXFunction->hide();
textLabelX->hide();
textLabelXF->hide();
textLabelArgX->hide();
kLineEditXFunction->hide();
textLabelY->setText( "" );
textLabelArgY->setText( "(x) = " );
QWhatsThis::add( kLineEditYFunction, tr2i18n( "Enter an expression for the function.\n"
"The dummy variable is x.\n"
"Example: x^2" ) );
checkBoxDerivative1->show();
checkBoxDerivative2->show();
break;
......@@ -79,6 +83,9 @@ void KEditFunction::setVisibleWidgets()
textLabelArgX->show();
textLabelY->setText( "y" );
textLabelArgY->setText( "(t) = " );
QWhatsThis::add( kLineEditYFunction, tr2i18n( "Enter an expression for the function.\n"
"The dummy variable is t.\n"
"Example: sin(t)" ) );
checkBoxDerivative1->hide();
checkBoxDerivative2->hide();
break;
......@@ -90,6 +97,9 @@ void KEditFunction::setVisibleWidgets()
textLabelArgX->hide();
textLabelY->setText( "r" );
textLabelArgY->setText( "(theta) = " );
QWhatsThis::add( kLineEditYFunction, tr2i18n( "Enter an expression for the function.\n"
"The dummy variable is theta.\n"
"Example: 3*theta" ) );
checkBoxDerivative1->show();
checkBoxDerivative2->show();
}
......
......@@ -9,7 +9,7 @@
<x>0</x>
<y>0</y>
<width>293</width>
<height>486</height>
<height>488</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -68,11 +68,12 @@
</sizepolicy>
</property>
<property name="toolTip" stdset="0">
<string>enter the expression</string>
<string>enter an expression</string>
</property>
<property name="whatsThis" stdset="0">
<string>Enter an expression for the function. The dummy variable is t.
Example: t^2</string>
<string>Enter an expression for the function.
The dummy variable is t.
Example: cos(t)</string>
</property>
</widget>
<widget class="KLineEdit" row="0" column="1">
......@@ -145,10 +146,12 @@ The name of a function must be unique. If you leave this line empty KmPlot will
</sizepolicy>
</property>
<property name="toolTip" stdset="0">
<string>enter the expression</string>
<string>enter an expression</string>
</property>
<property name="whatsThis" stdset="0">
<string>Enter an expression for the function.</string>
<string>Enter an expression for the function.
The dummy variable is x.
Example: x^2</string>
</property>
</widget>
<widget class="QLayoutWidget" row="1" column="0">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment