From 5496acb8e9ea3ffdb677f073bc1ef62f15b4d142 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 2 Jul 2007 10:58:03 +0000 Subject: [PATCH] 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 --- applet.cpp | 2 +- applet.h | 4 ++-- corona.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/applet.cpp b/applet.cpp index a2fe6cc9c..7e6e7e04f 100644 --- a/applet.cpp +++ b/applet.cpp @@ -296,7 +296,7 @@ bool Applet::eventFilter( QObject *o, QEvent * e ) return QObject::eventFilter(o, e); } -void Applet::configureDialog() +void Applet::showConfigurationInterface() { } diff --git a/applet.h b/applet.h index 2d8424202..2b5b952fe 100644 --- a/applet.h +++ b/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 * from the context menu. */ - virtual void configureDialog(); + virtual void showConfigurationInterface(); /** * 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 * 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 **/ diff --git a/corona.cpp b/corona.cpp index 8d4db2e82..2ceaa239a 100644 --- a/corona.cpp +++ b/corona.cpp @@ -318,7 +318,7 @@ void Corona::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent) if (applet->hasConfigurationInterface()) { QAction* configureApplet = new QAction(i18n("%1 Settings...", applet->name()), this); connect(configureApplet, SIGNAL(triggered(bool)), - applet, SLOT(configureDialog())); + applet, SLOT(showConfigurationInterface())); desktopMenu.addAction(configureApplet); hasEntries = true; }