actually allow runns to provide their config ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=731262
This commit is contained in:
parent
e099821b71
commit
82302e817b
@ -280,7 +280,7 @@ void AbstractRunner::setHasMatchOptions(bool hasMatchOptions)
|
||||
d->hasMatchOptions = hasMatchOptions;
|
||||
}
|
||||
|
||||
void AbstractRunner::createMatchOptions(QWidget* parent)
|
||||
void AbstractRunner::createMatchOptions(QWidget *parent)
|
||||
{
|
||||
Q_UNUSED(parent)
|
||||
}
|
||||
@ -295,6 +295,11 @@ void AbstractRunner::setCanBeConfigured(bool hasConfig)
|
||||
d->hasConfig = hasConfig;
|
||||
}
|
||||
|
||||
void AbstractRunner::createConfigurationInterface(QWidget *widget)
|
||||
{
|
||||
Q_UNUSED(widget)
|
||||
}
|
||||
|
||||
void AbstractRunner::exec(Plasma::SearchAction *action)
|
||||
{
|
||||
Q_UNUSED(action)
|
||||
|
@ -188,19 +188,28 @@ class PLASMA_EXPORT AbstractRunner : public QObject
|
||||
bool hasMatchOptions();
|
||||
|
||||
/**
|
||||
* If the hasMatchOptions() returns true, this method will be called to get
|
||||
* the widget displaying the options the user can interact with to modify
|
||||
* If hasMatchOptions() returns true, this method may be called to get
|
||||
* a widget displaying the options the user can interact with to modify
|
||||
* the behaviour of what happens when a given match is selected.
|
||||
*
|
||||
* @param widget the parent of the options widgets.
|
||||
*/
|
||||
virtual void createMatchOptions(QWidget* widget);
|
||||
virtual void createMatchOptions(QWidget *widget);
|
||||
|
||||
/**
|
||||
* If the runner itself has configuration options, this method returns true
|
||||
*/
|
||||
bool canBeConfigured();
|
||||
|
||||
/**
|
||||
* If canBeConfigured() returns true, this method may to get
|
||||
* a widget displaying the options the user can interact with to modify
|
||||
* the behaviour of what happens when a given match is selected.
|
||||
*
|
||||
* @param widget the parent of the options widgets.
|
||||
*/
|
||||
virtual void createConfigurationInterface(QWidget *widget);
|
||||
|
||||
/**
|
||||
* Called whenever an exact or possible match associated with this
|
||||
* runner is triggered.
|
||||
|
Loading…
x
Reference in New Issue
Block a user