configureDialog -> showConfigurationInterface
more explicit as to what it does and falls in line with setHasConfigurationInterface svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=682296
This commit is contained in:
parent
8e6578bf18
commit
5496acb8e9
@ -296,7 +296,7 @@ bool Applet::eventFilter( QObject *o, QEvent * e )
|
|||||||
return QObject::eventFilter(o, e);
|
return QObject::eventFilter(o, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Applet::configureDialog()
|
void Applet::showConfigurationInterface()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
applet.h
4
applet.h
@ -145,7 +145,7 @@ class PLASMA_EXPORT Applet : public QObject, public QGraphicsItem
|
|||||||
* play with the plasmoid options. Called when the user selects the configure entry
|
* play with the plasmoid options. Called when the user selects the configure entry
|
||||||
* from the context menu.
|
* from the context menu.
|
||||||
*/
|
*/
|
||||||
virtual void configureDialog();
|
virtual void showConfigurationInterface();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to load an applet, returning a pointer to the applet if
|
* Attempts to load an applet, returning a pointer to the applet if
|
||||||
@ -267,7 +267,7 @@ class PLASMA_EXPORT Applet : public QObject, public QGraphicsItem
|
|||||||
/**
|
/**
|
||||||
* Sets whether or not this applet provides a user interface for configuring
|
* Sets whether or not this applet provides a user interface for configuring
|
||||||
* the applet. It defaults to false, and if true is passed in you should
|
* the applet. It defaults to false, and if true is passed in you should
|
||||||
* also reimplement configureDialog()
|
* also reimplement showConfigurationInterface()
|
||||||
*
|
*
|
||||||
* @arg hasInterface whether or not there is a user interface available
|
* @arg hasInterface whether or not there is a user interface available
|
||||||
**/
|
**/
|
||||||
|
@ -318,7 +318,7 @@ void Corona::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent)
|
|||||||
if (applet->hasConfigurationInterface()) {
|
if (applet->hasConfigurationInterface()) {
|
||||||
QAction* configureApplet = new QAction(i18n("%1 Settings...", applet->name()), this);
|
QAction* configureApplet = new QAction(i18n("%1 Settings...", applet->name()), this);
|
||||||
connect(configureApplet, SIGNAL(triggered(bool)),
|
connect(configureApplet, SIGNAL(triggered(bool)),
|
||||||
applet, SLOT(configureDialog()));
|
applet, SLOT(showConfigurationInterface()));
|
||||||
desktopMenu.addAction(configureApplet);
|
desktopMenu.addAction(configureApplet);
|
||||||
hasEntries = true;
|
hasEntries = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user