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:
parent
53a6938a87
commit
1847d60a1d
@ -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)
|
||||
|
4
applet.h
4
applet.h
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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*)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user