API REVIEW: launchActivated -> releaseVisualFocus; more generic and a bit more obvious as to its purpose

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802286
This commit is contained in:
Aaron J. Seigo 2008-04-29 02:28:35 +00:00
parent 53a6938a87
commit 1847d60a1d
5 changed files with 7 additions and 7 deletions

View File

@ -581,7 +581,7 @@ void Applet::resetConfigurationObject()
d->mainConfig = 0;
}
ConfigXml* Applet::configXml() const
ConfigXml* Applet::configScheme() const
{
return d->configXml;
}
@ -1243,7 +1243,7 @@ void Applet::showConfigurationInterface()
dialog->enableButtonApply(true);
}
emit launchActivated();
emit releaseVisualFocus();
}
void Applet::createConfigurationInterface(KConfigDialog *parent)

View File

@ -141,7 +141,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
*
* @return config skeleton object, or 0 if none
**/
ConfigXml* configXml() const;
ConfigXml* configScheme() const;
/**
* Loads the given DataEngine
@ -473,7 +473,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
* to ensure that the Dashboard view in Plasma hides when such an event is
* triggered by an item it is displaying.
*/
void launchActivated();
void releaseVisualFocus();
/**
* Emitted whenever the applet makes a geometry change, so that views

View File

@ -986,7 +986,7 @@ Applet* Containment::Private::addApplet(const QString& name, const QVariantList&
//kDebug() << applet->name() << "sizehint:" << applet->sizeHint() << "geometry:" << applet->geometry();
connect(applet, SIGNAL(configNeedsSaving()), q, SIGNAL(configNeedsSaving()));
connect(applet, SIGNAL(launchActivated()), q, SIGNAL(launchActivated()));
connect(applet, SIGNAL(releaseVisualFocus()), q, SIGNAL(releaseVisualFocus()));
q->addApplet(applet, appletGeometry.topLeft(), delayInit);
return applet;
}

View File

@ -165,7 +165,7 @@ public:
containments.append(containment);
connect(containment, SIGNAL(destroyed(QObject*)), q, SLOT(containmentDestroyed(QObject*)));
connect(containment, SIGNAL(configNeedsSaving()), q, SLOT(scheduleConfigSync()));
connect(containment, SIGNAL(launchActivated()), q, SIGNAL(launchActivated()));
connect(containment, SIGNAL(releaseVisualFocus()), q, SIGNAL(releaseVisualFocus()));
connect(containment, SIGNAL(screenChanged(int,int,Plasma::Containment*)),
q, SIGNAL(screenOwnerChanged(int,int,Plasma::Containment*)));

View File

@ -146,7 +146,7 @@ Q_SIGNALS:
* to ensure that the Dashboard view in Plasma hides when such an event is
* triggered by an item it is displaying.
*/
void launchActivated();
void releaseVisualFocus();
protected:
/**