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

Zongyi Zhang freebody.kst at gmail.com
Fri Apr 16 20:06:09 CEST 2010


SVN commit 1115523 by zhang:

qtooltip

 M  +6 -6      kst2dplotwidget.cpp  
 M  +1 -2      kstdatanotifier.cpp  
 M  +3 -3      kstfilterdialog.cpp  
 M  +3 -1      statuslabel.cpp  


--- branches/work/kst/kst1kde4/kst/src/libkstapp/kst2dplotwidget.cpp #1115522:1115523
@@ -68,13 +68,13 @@
 // xxx  _remove->setPixmap(BarIcon("back"));
   _remove->setEnabled(false);
 // xxx  _remove->setAccel(ALT+Key_R);
-/* xxx
-  QToolTip::add(_up, i18n("Shortcut: Alt+Up"));
-  QToolTip::add(_down, i18n("Shortcut: Alt+Down"));
-  QToolTip::add(_add, i18n("Shortcut: Alt+s"));
-  QToolTip::add(_remove, i18n("Shortcut: Alt+r"));
-*/
 
+	_up->setToolTip(tr("Shortcut: Alt+Up"));
+  _down->setToolTip(tr("Shortcut: Alt+Down"));
+  _add->setToolTip(tr("Shortcut: Alt+s"));
+  _remove->setToolTip(tr("Shortcut: Alt+r"));
+
+
   //
   // axes range...
   //
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstdatanotifier.cpp #1115522:1115523
@@ -17,7 +17,6 @@
 
 #include <QColor>
 #include <QTimer>
-#include <QToolTip>
 
 #include "kst.h"
 #include "kstdatanotifier.h"
@@ -33,7 +32,7 @@
   setShape(Rectangular);
   setLook(Sunken);
   _animationStage = 0;
-// xxx  QToolTip::add(this, tr("Indicates that new data has arrived."));
+  this->setToolTip(tr("Indicates that new data has arrived."));
   show();
 
   _colors = new QColor[numIterations];
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstfilterdialog.cpp #1115522:1115523
@@ -422,8 +422,8 @@
         w->allowDirectEntry(true);
         if (p) {
           p->readLock();
-// xxx					w->_scalar->QWidget::setToopTip("");
-// xxx					w->_scalar->QWidget::setToopTip(QString::number(p->value()));
+					w->_scalar->QWidget::setToolTip("");
+					w->_scalar->QWidget::setToolTip(QString::number(p->value()));
           p->unlock();
         }
       } else if (string) {
@@ -446,7 +446,7 @@
         if (p) {
           p->readLock();
 					w->_string->setToolTip("");
-// xxx					w->_string->setToopTip(p->value());
+					w->_string->setToolTip(p->value());
           p->unlock();
         }
       } else {
--- branches/work/kst/kst1kde4/kst/src/libkstapp/statuslabel.cpp #1115522:1115523
@@ -30,7 +30,7 @@
 }
 
 void StatusLabel::setFullText() {
-// xxx  QToolTip::remove(this);
+	this->setToolTip("");
 // xxx  QToolTip::hide();
 
   setMaximumWidth(32767);
@@ -72,6 +72,7 @@
   QString str;
 
 // xxx  QToolTip::remove(this);
+	this->setToolTip("");
 
   if (width < 0) {
     width = 0;
@@ -83,6 +84,7 @@
 
   if (str != _fullText) {
 // xxx    QToolTip::add(this, _fullText);
+		this->setToolTip(_fullText);
   }
 
   setText(str);


More information about the Kst mailing list