* Toolbox -> ToolBox
* emit the signals only when things change svn path=/trunk/KDE/kdelibs/; revision=958822
This commit is contained in:
parent
9f2fc1d955
commit
6d7622271c
@ -1288,15 +1288,17 @@ void Containment::setToolBoxOpen(bool open)
|
||||
|
||||
void Containment::openToolBox()
|
||||
{
|
||||
if (d->toolBox) {
|
||||
if (d->toolBox && !d->toolBox->showing()) {
|
||||
d->toolBox->showToolBox();
|
||||
emit toolBoxVisibilityChanged(true);
|
||||
}
|
||||
}
|
||||
|
||||
void Containment::closeToolBox()
|
||||
{
|
||||
if (d->toolBox) {
|
||||
if (d->toolBox && d->toolBox->showing()) {
|
||||
d->toolBox->hideToolBox();
|
||||
emit toolBoxVisibilityChanged(false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1587,7 +1589,7 @@ ToolBox *ContainmentPrivate::createToolBox()
|
||||
|
||||
if (toolBox) {
|
||||
QObject::connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled()));
|
||||
QObject::connect(toolBox, SIGNAL(toggled()), q, SLOT(updateToolboxVisibility()));
|
||||
QObject::connect(toolBox, SIGNAL(toggled()), q, SLOT(updateToolBoxVisibility()));
|
||||
toolBox->load();
|
||||
positionToolBox();
|
||||
}
|
||||
@ -1603,11 +1605,9 @@ void ContainmentPrivate::positionToolBox()
|
||||
}
|
||||
}
|
||||
|
||||
void ContainmentPrivate::updateToolboxVisibility()
|
||||
void ContainmentPrivate::updateToolBoxVisibility()
|
||||
{
|
||||
if (toolBox) {
|
||||
emit q->toolBoxVisibilityChanged(toolBox->showing());
|
||||
}
|
||||
}
|
||||
|
||||
void ContainmentPrivate::triggerShowAddWidgets()
|
||||
|
@ -550,7 +550,7 @@ class PLASMA_EXPORT Containment : public Applet
|
||||
Q_PRIVATE_SLOT(d, void zoomIn())
|
||||
Q_PRIVATE_SLOT(d, void zoomOut())
|
||||
Q_PRIVATE_SLOT(d, void requestConfiguration())
|
||||
Q_PRIVATE_SLOT(d, void updateToolboxVisibility())
|
||||
Q_PRIVATE_SLOT(d, void updateToolBoxVisibility())
|
||||
|
||||
friend class Applet;
|
||||
friend class AppletPrivate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user