[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Fri Apr 16 20:13:58 CEST 2010
SVN commit 1115525 by zhang:
qtooltip
M +0 -1 kst2dplotwidget.cpp
M +1 -2 kstdebugnotifier.cpp
M +0 -2 kstfilterdialog.cpp
M +0 -2 kstplugindialog.cpp
M +6 -7 kstviewlegendwidget.cpp
M +0 -3 statuslabel.cpp
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kst2dplotwidget.cpp #1115524:1115525
@@ -26,7 +26,6 @@
#include <QRadioButton>
#include <QSpinBox>
#include <QStyle>
-#include <QToolTip>
/* xxx
#include <kcolorbutton.h>
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstdebugnotifier.cpp #1115524:1115525
@@ -16,7 +16,6 @@
***************************************************************************/
#include <QTimer>
-#include <QToolTip>
#include "kst.h"
#include "kstdebugnotifier.h"
@@ -29,7 +28,7 @@
: QLabel(parent) {
_animationStage = 0;
_gotPress = false;
-// xxx QToolTip::add(this, QObject::tr("An error has occurred. Click on this icon for more details."));
+ this->setToolTip(QObject::tr("An error has occurred. Click on this icon for more details."));
_pm.resize(IMAGE_STAGES);
// xxx _pm[0] = QPixmap(locate("data", "kst/pics/kst_error_1.png"));
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstfilterdialog.cpp #1115524:1115525
@@ -19,8 +19,6 @@
#include <assert.h>
#include <QLineEdit>
-#include <QToolTip>
-#include <QWhatsThis>
#include "curveappearancewidget.h"
#include "kst2dplot.h"
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstplugindialog.cpp #1115524:1115525
@@ -27,8 +27,6 @@
#include <QMessageBox>
#include <QTextEdit>
#include <QTimer>
-#include <QToolTip>
-#include <QWhatsThis>
#include "curveappearancewidget.h"
#include "kst.h"
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstviewlegendwidget.cpp #1115524:1115525
@@ -17,7 +17,6 @@
// include files for Qt
#include <QCheckBox>
-#include <QToolTip>
// include files for KDE
// xxx #include <kiconloader.h>
@@ -51,12 +50,12 @@
_add->setEnabled(false);
// xxx _remove->setPixmap(BarIcon("back"));
_remove->setEnabled(false);
-/* xxx
- QToolTip::add(_up, QObject::tr("Shortcut: Alt+Up"));
- QToolTip::add(_down, QObject::tr("Shortcut: Alt+Down"));
- QToolTip::add(_add, QObject::tr("Shortcut: Alt+s"));
- QToolTip::add(_remove, QObject::tr("Shortcut: Alt+r"));
-*/
+
+ _up->setToolTip(QObject::tr("Shortcut: Alt+Up"));
+ _down->setToolTip(QObject::tr("Shortcut: Alt+Down"));
+ _add->setToolTip(QObject::tr("Shortcut: Alt+s"));
+ _remove->setToolTip(QObject::tr("Shortcut: Alt+r"));
+
_changedFgColor = false;
_changedBgColor = false;
}
--- branches/work/kst/kst1kde4/kst/src/libkstapp/statuslabel.cpp #1115524:1115525
@@ -31,7 +31,6 @@
void StatusLabel::setFullText() {
this->setToolTip("");
-// xxx QToolTip::hide();
setMaximumWidth(32767);
setText(_fullText);
@@ -71,7 +70,6 @@
void StatusLabel::setTextWidth(const QFontMetrics &metrics, int width) {
QString str;
-// xxx QToolTip::remove(this);
this->setToolTip("");
if (width < 0) {
@@ -83,7 +81,6 @@
str = squeeze(_fullText, metrics, width);
if (str != _fullText) {
-// xxx QToolTip::add(this, _fullText);
this->setToolTip(_fullText);
}
More information about the Kst
mailing list