api review part 1
removed some dead signals and an unnecessary const svn path=/trunk/KDE/kdelibs/; revision=1012640
This commit is contained in:
parent
f0a68d537c
commit
9d2a2e40ba
2
applet.h
2
applet.h
@ -702,7 +702,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
||||
* Emitted when the immutability changes
|
||||
* @since 4.4
|
||||
*/
|
||||
void immutabilityChanged(const ImmutabilityType immutable);
|
||||
void immutabilityChanged(ImmutabilityType immutable);
|
||||
|
||||
public Q_SLOTS:
|
||||
/**
|
||||
|
@ -258,8 +258,6 @@ void Containment::init()
|
||||
ContextAction *action = ContextAction::load(defaults.value(trigger));
|
||||
if (action) {
|
||||
d->contextActions.insert(trigger, action);
|
||||
connect(action, SIGNAL(configureRequested()), this, SLOT(requestConfiguration()));
|
||||
connect(action, SIGNAL(configNeedsSaving()), this, SIGNAL(configNeedsSaving()));
|
||||
action->setParent(this);
|
||||
}
|
||||
}
|
||||
@ -1721,8 +1719,6 @@ void Containment::setContextAction(const QString &trigger, const QString &plugin
|
||||
if (action) {
|
||||
cfg.writeEntry(trigger, pluginName);
|
||||
d->contextActions.insert(trigger, action);
|
||||
connect(action, SIGNAL(configureRequested()), this, SLOT(requestConfiguration()));
|
||||
connect(action, SIGNAL(configNeedsSaving()), this, SIGNAL(configNeedsSaving()));
|
||||
} else {
|
||||
//bad plugin... gets removed. is this a feature or a bug?
|
||||
cfg.deleteEntry(trigger);
|
||||
|
@ -231,7 +231,6 @@ void ContextAction::setConfigurationRequired(bool needsConfig, const QString &re
|
||||
}
|
||||
|
||||
d->needsConfig = needsConfig;
|
||||
emit configurationRequired(needsConfig);
|
||||
}
|
||||
|
||||
} // Plasma namespace
|
||||
|
@ -208,24 +208,6 @@ class PLASMA_EXPORT ContextAction : public QObject
|
||||
*/
|
||||
QAction *configurationAction();
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* Emitted when the user wants to configure/change the contextaction.
|
||||
*/
|
||||
void configureRequested();
|
||||
|
||||
/**
|
||||
* Emitted when the state of the contextaction requiring configuration
|
||||
* changes.
|
||||
*/
|
||||
void configurationRequired(bool needsConfig);
|
||||
|
||||
/**
|
||||
* Emitted when the configuration of the contextaction needs to be saved
|
||||
* to disk.
|
||||
*/
|
||||
void configNeedsSaving();
|
||||
|
||||
protected:
|
||||
/**
|
||||
* This constructor is to be used with the plugin loading systems
|
||||
|
Loading…
Reference in New Issue
Block a user