make it easy to track if the configuration dialog is around or not
svn path=/trunk/KDE/kdelibs/; revision=1082160
This commit is contained in:
parent
f820ea872d
commit
dd53f9bd7f
@ -1681,6 +1681,11 @@ void Applet::resizeEvent(QGraphicsSceneResizeEvent *event)
|
||||
emit geometryChanged();
|
||||
}
|
||||
|
||||
bool Applet::isUserConfiguring() const
|
||||
{
|
||||
return KConfigDialog::exists(d->configDialogId());
|
||||
}
|
||||
|
||||
void Applet::showConfigurationInterface()
|
||||
{
|
||||
if (!hasConfigurationInterface()) {
|
||||
|
7
applet.h
7
applet.h
@ -87,6 +87,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
||||
Q_PROPERTY(QRectF geometry READ geometry WRITE setGeometry)
|
||||
Q_PROPERTY(bool shouldConserveResources READ shouldConserveResources)
|
||||
Q_PROPERTY(uint id READ id)
|
||||
Q_PROPERTY(bool userConfiguring READ isUserConfiguring)
|
||||
|
||||
public:
|
||||
typedef QList<Applet*> List;
|
||||
@ -796,6 +797,12 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
||||
*/
|
||||
virtual void showConfigurationInterface();
|
||||
|
||||
/**
|
||||
* @return true when the configuration interface is being shown
|
||||
* @since 4.5
|
||||
*/
|
||||
bool isUserConfiguring() const;
|
||||
|
||||
/**
|
||||
* Causes this applet to raise above all other applets.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user