[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Fri Apr 16 19:54:10 CEST 2010
SVN commit 1115522 by zhang:
qtooltip
M +8 -10 kstfilterdialog.cpp
M +14 -16 kstplugindialog.cpp
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstfilterdialog.cpp #1115521:1115522
@@ -422,8 +422,8 @@
w->allowDirectEntry(true);
if (p) {
p->readLock();
-// xxx QToolTip::remove(w->_scalar);
-// xxx QToolTip::add(w->_scalar, QString::number(p->value()));
+// xxx w->_scalar->QWidget::setToopTip("");
+// xxx w->_scalar->QWidget::setToopTip(QString::number(p->value()));
p->unlock();
}
} else if (string) {
@@ -445,8 +445,8 @@
w->allowDirectEntry(true);
if (p) {
p->readLock();
-// xxx QToolTip::remove(w->_string);
-// xxx QToolTip::add(w->_string, p->value());
+ w->_string->setToolTip("");
+// xxx w->_string->setToopTip(p->value());
p->unlock();
}
} else {
@@ -474,12 +474,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->QWidget::setWhatsThis("");
+ widget->QWidget::setWhatsThis("");
+ label->QWidget::setWhatsThis((*it)._description);
+ widget->QWidget::setWhatsThis((*it)._description);
}
++cnt;
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstplugindialog.cpp #1115521:1115522
@@ -861,8 +861,8 @@
w->allowDirectEntry(true);
if (p) {
p->readLock();
-// xxx QToolTip::remove(w->_scalar);
-// xxx QToolTip::add(w->_scalar, QString::number(p->value()));
+ w->_scalar->setToolTip("");
+ w->_scalar->setToolTip(QString::number(p->value()));
p->unlock();
}
} else if (string) {
@@ -884,8 +884,8 @@
w->allowDirectEntry(true);
if (p) {
p->readLock();
-// xxx QToolTip::remove(w->_string);
-// xxx QToolTip::add(w->_string, p->value());
+ w->_string->setToolTip("");
+ w->_string->setToolTip(p->value());
p->unlock();
}
} else {
@@ -917,12 +917,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;
@@ -1041,11 +1039,11 @@
if (s) {
s->readLock();
-// xxx QToolTip::remove(w);
-// xxx QToolTip::add(w, QString::number(s->value()));
+ w->setToolTip("");
+ w->setToolTip(QString::number(s->value()));
s->unlock();
} else {
-// xxx QToolTip::remove(w);
+ w->setToolTip("");
}
}
@@ -1056,11 +1054,11 @@
if (s) {
s->readLock();
-// xxx QToolTip::remove(w);
-// xxx QToolTip::add(w, s->value());
+ w->setToolTip("");
+ w->setToolTip(s->value());
s->unlock();
} else {
-// xxx QToolTip::remove(w);
+ w->setToolTip("");
}
}
More information about the Kst
mailing list