[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Fri Apr 16 20:28:05 CEST 2010
SVN commit 1115528 by zhang:
qtooltip
M +4 -5 kstdatawizard.cpp
M +2 -4 kstfitdialog.cpp
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstdatawizard.cpp #1115527:1115528
@@ -29,7 +29,6 @@
#include <QSpinBox>
#include <QString>
#include <QTimer>
-#include <QToolTip>
#include <QWizard>
#include "kst.h"
@@ -160,10 +159,10 @@
loadSettings();
- QToolTip::add(_up, tr("Raise in plot order: Alt+Up"));
- QToolTip::add(_down, tr("Lower in plot order: Alt+Down"));
- QToolTip::add(_add, tr("Select: Alt+s"));
- QToolTip::add(_remove, tr("Remove: Alt+r"));
+ _up->setToolTip(tr("Raise in plot order: Alt+Up"));
+ _down->setToolTip(tr("Lower in plot order: Alt+Down"));
+ _add->setToolTip(tr("Select: Alt+s"));
+ _rename->setToolTip(tr("Remove: Alt+r"));
}
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstfitdialog.cpp #1115527:1115528
@@ -22,8 +22,6 @@
#include <QLineEdit>
#include <QMessageBox>
#include <QRegExp>
-#include <QToolTip>
-#include <QWhatsThis>
#include "curveappearancewidget.h"
#include "kst2dplot.h"
@@ -337,7 +335,7 @@
p = *KST::scalarList.findTag(w->_scalar->currentText());
w->allowDirectEntry( true );
if (p) {
-// xxx QToolTip::add(w->_scalar, QString::number(p->value()));
+ w->_scalar->setToolTip(QString::number(p->value()));
}
} else if (string) {
StringSelector *w = new StringSelector(parent);
@@ -354,7 +352,7 @@
p = *KST::stringList.findTag(w->_string->currentText());
w->allowDirectEntry( true );
if (p) {
-// xxx QToolTip::add(w->_string, p->value());
+ w->_string->setToolTip(p->value());
}
} else {
if (fixed) {
More information about the Kst
mailing list