unhighlight when setShow is called; fixes the toolbox in the panel not going back to grey when the toolbox is hidden by clicking on another window

svn path=/trunk/KDE/kdelibs/; revision=1045294
This commit is contained in:
Aaron J. Seigo 2009-11-05 18:03:33 +00:00
parent 84c7463c53
commit 8f3e0d5494
2 changed files with 7 additions and 3 deletions

View File

@ -231,13 +231,17 @@ void PanelToolBox::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
void PanelToolBox::showToolBox()
{
setShowing(true);
highlight(true);
}
void PanelToolBox::hideToolBox()
{
setShowing(false);
highlight(false);
}
void PanelToolBox::setShowing(bool show)
{
InternalToolBox::setShowing(show);
highlight(show);
}
void PanelToolBox::toolTipAboutToShow()
@ -298,7 +302,6 @@ void PanelToolBox::animate(qreal progress)
void PanelToolBox::toggle()
{
setShowing(!isShowing());
highlight(isShowing());
}
} // plasma namespace

View File

@ -50,6 +50,7 @@ public:
void showToolBox();
void hideToolBox();
void setShowing(bool show);
public Q_SLOTS:
void toolTipAboutToShow();