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:
Aaron J. Seigo 2007-07-02 10:58:03 +00:00
parent 8e6578bf18
commit 5496acb8e9
3 changed files with 4 additions and 4 deletions

View File

@ -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()
{ {
} }

View File

@ -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
**/ **/

View File

@ -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;
} }