replace hasConfig functions with a .desktop entry
svn path=/trunk/KDE/kdelibs/; revision=1015267
This commit is contained in:
parent
9ad7c00c23
commit
d2cf2d781c
@ -222,16 +222,6 @@ void ContainmentActions::setConfigurationRequired(bool needsConfig)
|
||||
d->needsConfig = needsConfig;
|
||||
}
|
||||
|
||||
bool ContainmentActions::hasConfigurationInterface() const
|
||||
{
|
||||
return d->hasConfig;
|
||||
}
|
||||
|
||||
void ContainmentActions::setHasConfigurationInterface(bool hasConfig)
|
||||
{
|
||||
d->hasConfig = hasConfig;
|
||||
}
|
||||
|
||||
QString ContainmentActions::eventToString(QEvent *event)
|
||||
{
|
||||
QString trigger;
|
||||
|
@ -195,11 +195,6 @@ class PLASMA_EXPORT ContainmentActions : public QObject
|
||||
*/
|
||||
bool configurationRequired() const;
|
||||
|
||||
/**
|
||||
* @return true if the containmentactions has a config UI
|
||||
*/
|
||||
bool hasConfigurationInterface() const;
|
||||
|
||||
/**
|
||||
* Turns a mouse or wheel event into a string suitable for a ContainmentActions
|
||||
* @return the string representation of the event
|
||||
@ -235,11 +230,6 @@ class PLASMA_EXPORT ContainmentActions : public QObject
|
||||
*/
|
||||
void setConfigurationRequired(bool needsConfiguring = true);
|
||||
|
||||
/**
|
||||
* set whether the containmentactions has a config UI
|
||||
*/
|
||||
void setHasConfigurationInterface(bool hasConfig = true);
|
||||
|
||||
/**
|
||||
* @return the containment the plugin is associated with.
|
||||
*/
|
||||
|
@ -32,8 +32,7 @@ public:
|
||||
q(containmentActions),
|
||||
containmentActionsDescription(service),
|
||||
initialized(false),
|
||||
needsConfig(false),
|
||||
hasConfig(false)
|
||||
needsConfig(false)
|
||||
{
|
||||
};
|
||||
|
||||
@ -45,7 +44,6 @@ public:
|
||||
KServiceAction mode;
|
||||
bool initialized : 1;
|
||||
bool needsConfig : 1;
|
||||
bool hasConfig : 1;
|
||||
};
|
||||
|
||||
} // namespace Plasma
|
||||
|
@ -12,3 +12,6 @@ Comment[uk]=Дії контейнерів Плазми
|
||||
Comment[x-test]=xxPlasma ContainmentActionsxx
|
||||
Comment[zh_TW]=Plasma 容器動作
|
||||
|
||||
[PropertyDef::X-Plasma-HasConfigurationInterface]
|
||||
Type=bool
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user