Fix QToolTip

svn path=/trunk/KDE/kdebase/workspace/; revision=508032
icc-effect-5.14.5
Laurent Montel 2006-02-10 15:33:40 +00:00
parent 026d7fb501
commit fde9470fdc
4 changed files with 0 additions and 9 deletions

View File

@ -820,7 +820,6 @@ void B2Client::desktopChange()
bool on = isOnAllDesktops();
if (B2Button *b = button[BtnSticky]) {
b->setDown(on);
QToolTip::remove(b);
b->setToolTip(
on ? i18n("Not on all desktops") : i18n("On all desktops"));
}
@ -832,7 +831,6 @@ void B2Client::maximizeChange()
if (button[BtnMax]) {
button[BtnMax]->setPixmaps(m ? P_NORMALIZE : P_MAX);
button[BtnMax]->repaint();
QToolTip::remove(button[BtnMax]);
button[BtnMax]->setToolTip(
m ? i18n("Restore") : i18n("Maximize"));
}
@ -866,7 +864,6 @@ void B2Client::shadeChange()
g->activate();
doShape();
if (B2Button *b = button[BtnShade]) {
QToolTip::remove(b);
b->setToolTip( isSetShade() ? i18n("Unshade") : i18n("Shade"));
}
}

View File

@ -1411,7 +1411,6 @@ void KeramikClient::maximizeChange()
}
if ( button[ MaxButton ] ) {
QToolTip::remove( button[ MaxButton ] );
button[ MaxButton ]->setToolTip( maximizeMode() == MaximizeFull ? i18n("Restore") : i18n("Maximize") );
button[ MaxButton ]->repaint();
}
@ -1423,7 +1422,6 @@ void KeramikClient::desktopChange()
if ( button[ OnAllDesktopsButton ] )
{
button[ OnAllDesktopsButton ]->repaint( true );
QToolTip::remove( button[ OnAllDesktopsButton ] );
button[ OnAllDesktopsButton ]->setToolTip( isOnAllDesktops() ? i18n("Not on all desktops") : i18n("On all desktops") );
}
}
@ -1434,7 +1432,6 @@ void KeramikClient::shadeChange()
if ( button[ ShadeButton ] )
{
button[ ShadeButton ]->repaint( true );
QToolTip::remove( button[ ShadeButton ] );
button[ ShadeButton ]->setToolTip( isSetShade() ? i18n("Unshade") : i18n("Shade") );
}
}

View File

@ -761,7 +761,6 @@ void KWMThemeClient::desktopChange()
if (stickyBtn) {
bool on = isOnAllDesktops();
stickyBtn->setPixmap(on ? *pindownPix : *pinupPix);
QToolTip::remove( stickyBtn );
stickyBtn->setToolTip( on ? i18n("Unsticky") : i18n("Sticky") );
}
}
@ -771,7 +770,6 @@ void KWMThemeClient::maximizeChange()
if (maxBtn) {
bool m = maximizeMode() == MaximizeFull;
maxBtn->setPixmap(m ? *minmaxPix : *maxPix);
QToolTip::remove( maxBtn );
maxBtn->setToolTip( m ? i18n("Restore") : i18n("Maximize"));
}
}

View File

@ -928,7 +928,6 @@ QSize KCommonDecorationButton::sizeHint() const
}
void KCommonDecorationButton::setTipText(const QString &tip) {
QToolTip::remove(this );
this->setToolTip( tip );
}