QToolTip::add -> setToolTip
svn path=/trunk/KDE/kdebase/workspace/; revision=462520
This commit is contained in:
parent
fef1c0b279
commit
a166c8e3d4
7 changed files with 20 additions and 20 deletions
|
@ -822,7 +822,7 @@ void B2Client::desktopChange()
|
|||
if (B2Button *b = button[BtnSticky]) {
|
||||
b->setDown(on);
|
||||
QToolTip::remove(b);
|
||||
QToolTip::add(b,
|
||||
b->setToolTip(
|
||||
on ? i18n("Not on all desktops") : i18n("On all desktops"));
|
||||
}
|
||||
}
|
||||
|
@ -834,7 +834,7 @@ void B2Client::maximizeChange()
|
|||
button[BtnMax]->setPixmaps(m ? P_NORMALIZE : P_MAX);
|
||||
button[BtnMax]->repaint();
|
||||
QToolTip::remove(button[BtnMax]);
|
||||
QToolTip::add(button[BtnMax],
|
||||
button[BtnMax]->setToolTip(
|
||||
m ? i18n("Restore") : i18n("Maximize"));
|
||||
}
|
||||
bottomSpacer->changeSize(10, thickness + (mustDrawHandle() ? 4 : 0),
|
||||
|
@ -868,7 +868,7 @@ void B2Client::shadeChange()
|
|||
doShape();
|
||||
if (B2Button *b = button[BtnShade]) {
|
||||
QToolTip::remove(b);
|
||||
QToolTip::add(b, isSetShade() ? i18n("Unshade") : i18n("Shade"));
|
||||
b->setToolTip( isSetShade() ? i18n("Unshade") : i18n("Shade"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1208,7 +1208,7 @@ B2Button::B2Button(B2Client *_client, QWidget *parent,
|
|||
client = _client;
|
||||
useMiniIcon = false;
|
||||
setFixedSize(buttonSize, buttonSize);
|
||||
QToolTip::add(this, tip);
|
||||
this->setToolTip( tip);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -757,7 +757,7 @@ KeramikButton::KeramikButton( KeramikClient* c, const char *name, Button btn, co
|
|||
{
|
||||
realizeButtons = realizeBtns;
|
||||
|
||||
QToolTip::add( this, tip ); // FRAME
|
||||
this->setToolTip( tip ); // FRAME
|
||||
setBackgroundMode( Qt::NoBackground );
|
||||
setCursor( Qt::arrowCursor );
|
||||
int size = clientHandler->roundButton()->height();
|
||||
|
@ -1412,7 +1412,7 @@ void KeramikClient::maximizeChange()
|
|||
|
||||
if ( button[ MaxButton ] ) {
|
||||
QToolTip::remove( button[ MaxButton ] );
|
||||
QToolTip::add( button[ MaxButton ], maximizeMode() == MaximizeFull ? i18n("Restore") : i18n("Maximize") );
|
||||
button[ MaxButton ]->setToolTip( maximizeMode() == MaximizeFull ? i18n("Restore") : i18n("Maximize") );
|
||||
button[ MaxButton ]->repaint();
|
||||
}
|
||||
}
|
||||
|
@ -1424,7 +1424,7 @@ void KeramikClient::desktopChange()
|
|||
{
|
||||
button[ OnAllDesktopsButton ]->repaint( true );
|
||||
QToolTip::remove( button[ OnAllDesktopsButton ] );
|
||||
QToolTip::add( button[ OnAllDesktopsButton ], isOnAllDesktops() ? i18n("Not on all desktops") : i18n("On all desktops") );
|
||||
button[ OnAllDesktopsButton ]->setToolTip( isOnAllDesktops() ? i18n("Not on all desktops") : i18n("On all desktops") );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1435,7 +1435,7 @@ void KeramikClient::shadeChange()
|
|||
{
|
||||
button[ ShadeButton ]->repaint( true );
|
||||
QToolTip::remove( button[ ShadeButton ] );
|
||||
QToolTip::add( button[ ShadeButton ], isSetShade() ? i18n("Unshade") : i18n("Shade") );
|
||||
button[ ShadeButton ]->setToolTip( isSetShade() ? i18n("Unshade") : i18n("Shade") );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -289,7 +289,7 @@ void KWMThemeClient::init()
|
|||
val = config->readEntry(key, defaultButtons[i]);
|
||||
if(val == "Menu"){
|
||||
mnuBtn = new MyButton(widget(), "menu");
|
||||
QToolTip::add( mnuBtn, i18n("Menu"));
|
||||
mnuBtn->setToolTip( i18n("Menu"));
|
||||
iconChange();
|
||||
hb->addWidget(mnuBtn);
|
||||
mnuBtn->setFixedSize(20, 20);
|
||||
|
@ -298,7 +298,7 @@ void KWMThemeClient::init()
|
|||
}
|
||||
else if(val == "Sticky"){
|
||||
stickyBtn = new MyButton(widget(), "sticky");
|
||||
QToolTip::add( stickyBtn, i18n("Sticky"));
|
||||
stickyBtn->setToolTip( i18n("Sticky"));
|
||||
if (isOnAllDesktops())
|
||||
stickyBtn->setPixmap(*pindownPix);
|
||||
else
|
||||
|
@ -309,7 +309,7 @@ void KWMThemeClient::init()
|
|||
}
|
||||
else if((val == "Iconify") && isMinimizable()){
|
||||
btn = new MyButton(widget(), "iconify");
|
||||
QToolTip::add( btn, i18n("Minimize"));
|
||||
btn->setToolTip( i18n("Minimize"));
|
||||
btn->setPixmap(*iconifyPix);
|
||||
connect(btn, SIGNAL(clicked()), this, SLOT(minimize()));
|
||||
hb->addWidget(btn);
|
||||
|
@ -317,7 +317,7 @@ void KWMThemeClient::init()
|
|||
}
|
||||
else if((val == "Maximize") && isMaximizable()){
|
||||
maxBtn = new MyButton(widget(), "max");
|
||||
QToolTip::add( maxBtn, i18n("Maximize"));
|
||||
maxBtn->setToolTip( i18n("Maximize"));
|
||||
maxBtn->setPixmap(*maxPix);
|
||||
connect(maxBtn, SIGNAL(clicked()), this, SLOT(maximize()));
|
||||
hb->addWidget(maxBtn);
|
||||
|
@ -325,7 +325,7 @@ void KWMThemeClient::init()
|
|||
}
|
||||
else if((val == "Close") && isCloseable()){
|
||||
btn = new MyButton(widget(), "close");
|
||||
QToolTip::add( btn, i18n("Close"));
|
||||
btn->setToolTip( i18n("Close"));
|
||||
btn->setPixmap(*closePix);
|
||||
connect(btn, SIGNAL(clicked()), this, SLOT(closeWindow()));
|
||||
hb->addWidget(btn);
|
||||
|
@ -762,7 +762,7 @@ void KWMThemeClient::desktopChange()
|
|||
bool on = isOnAllDesktops();
|
||||
stickyBtn->setPixmap(on ? *pindownPix : *pinupPix);
|
||||
QToolTip::remove( stickyBtn );
|
||||
QToolTip::add( stickyBtn, on ? i18n("Unsticky") : i18n("Sticky") );
|
||||
stickyBtn->setToolTip( on ? i18n("Unsticky") : i18n("Sticky") );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -772,7 +772,7 @@ void KWMThemeClient::maximizeChange()
|
|||
bool m = maximizeMode() == MaximizeFull;
|
||||
maxBtn->setPixmap(m ? *minmaxPix : *maxPix);
|
||||
QToolTip::remove( maxBtn );
|
||||
QToolTip::add( maxBtn, m ? i18n("Restore") : i18n("Maximize"));
|
||||
maxBtn->setToolTip( m ? i18n("Restore") : i18n("Maximize"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ void Decoration::init()
|
|||
button->setCursor( arrowCursor );
|
||||
button->move( 0, 0 );
|
||||
connect( button, SIGNAL( clicked()), SLOT( closeWindow()));
|
||||
QToolTip::add( button, "Zelva Mana" );
|
||||
button->setToolTip( "Zelva Mana" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
, toolTips(toolTips_) {}
|
||||
|
||||
public slots:
|
||||
void changed() {QToolTip::add( this, i18n(toolTips[currentItem()]) );}
|
||||
void changed() {this->setToolTip( i18n(toolTips[currentItem()]) );}
|
||||
|
||||
protected:
|
||||
char const * const * toolTips;
|
||||
|
|
|
@ -928,7 +928,7 @@ QSize KCommonDecorationButton::sizeHint() const
|
|||
|
||||
void KCommonDecorationButton::setTipText(const QString &tip) {
|
||||
QToolTip::remove(this );
|
||||
QToolTip::add(this, tip );
|
||||
this->setToolTip( tip );
|
||||
}
|
||||
|
||||
void KCommonDecorationButton::setToggleButton(bool toggle)
|
||||
|
|
|
@ -78,9 +78,9 @@ Q3PopupMenu* Workspace::clientPopup()
|
|||
QVBoxLayout *transLayout = new QVBoxLayout(trans_popup);
|
||||
trans_popup->setLayout( transLayout );
|
||||
transButton = new QPushButton(trans_popup, "transButton");
|
||||
QToolTip::add(transButton, i18n("Reset opacity to default value"));
|
||||
transButton->setToolTip( i18n("Reset opacity to default value"));
|
||||
transSlider = new QSlider(0, 100, 1, 100, Qt::Vertical, trans_popup, "transSlider");
|
||||
QToolTip::add(transSlider, i18n("Slide this to set the window's opacity"));
|
||||
transSlider->setToolTip( i18n("Slide this to set the window's opacity"));
|
||||
connect(transButton, SIGNAL(clicked()), SLOT(resetClientOpacity()));
|
||||
connect(transButton, SIGNAL(clicked()), trans_popup, SLOT(hide()));
|
||||
connect(transSlider, SIGNAL(valueChanged(int)), SLOT(setTransButtonText(int)));
|
||||
|
|
Loading…
Reference in a new issue