Version: v0.8.3 (using KDE 3.3.0, Gentoo) Compiler: gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5) OS: Linux (i686) release 2.6.8-gentoo When the mouse hovers over the kget icon in the system tray, the tool tip comes up but disappears about half a second later, not long enough to even read the tooltip. The rest of the tooltips in my system tray stay as long as the mouse is hovering over the icon - so it must be a kget bug
I can reproduce it with the same version and the SuSE 9.1 binary-RPMs
That's true. While mouse-cursor is in motion above systray-icon, tolltips shows up. But when stopping moving, it disappears. Please fix this :) THX!
I can also reproduce this (as of KDE 3.3) I aso vote for resolution of this bug :) Danny
Yes it happens also to me, with KDE 3.3.0 compiled from source.
Created attachment 9160 [details] patch against current CVS_HEAD
CVS commit by ratz: Fixes bug 88360 BUG: 88360 M +26 -6 docking.cpp 1.25 M +16 -1 docking.h 1.13 --- kdenetwork/kget/docking.cpp #1.24:1.25 @@ -51,5 +51,7 @@ DockWidget::DockWidget(KMainWidget * _pa // Enable dropping setAcceptDrops(true); - QToolTip::add( this, kapp->aboutData()->shortDescription() ); + + dtip = new DynamicTip( this ); + dtip->setStatus( kapp->aboutData()->shortDescription() ); } @@ -57,4 +59,6 @@ DockWidget::DockWidget(KMainWidget * _pa DockWidget::~DockWidget() { + delete dtip; + dtip = 0; } @@ -95,11 +99,27 @@ void DockWidget::contextMenuAboutToShow } -#include "docking.moc" +void DockWidget::updateToolTip( const QString& _status ) +{ + dtip->setStatus( _status ); +} -void DockWidget::updateToolTip( const QString& status ) +DynamicTip::DynamicTip( QWidget * parent ) + : QToolTip( parent ) { - QToolTip::remove( this ); - QToolTip::add( this, status ); + // no explicit initialization needed +} + +void DynamicTip::setStatus( const QString & _status ) +{ + status = _status; } + +void DynamicTip::maybeTip( const QPoint & _pos ) +{ + QRect r( parentWidget()->rect() ); + tip( r, status ); +} + +#include "docking.moc" --- kdenetwork/kget/docking.h #1.12:1.13 @@ -39,4 +39,18 @@ class KPopupMenu; class KMainWidget; +class DynamicTip : public QToolTip +{ + public: + DynamicTip( QWidget * parent ); + virtual ~DynamicTip() {}//TODO workaround for qt-bug, can be removed after 4.0 + void setStatus( const QString & _status ); + + protected: + void maybeTip( const QPoint & ); + + private: + QString status; +}; + class DockWidget:public KSystemTray { @@ -61,4 +75,5 @@ protected: private: KMainWidget *parent; + DynamicTip * dtip; };
*** Bug 100221 has been marked as a duplicate of this bug. ***