mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
generic: adjust to runners changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f78ce0a379
commit
9b267f5808
10 changed files with 12 additions and 17 deletions
|
@ -292,9 +292,8 @@ void ConverterRunner::match(Plasma::RunnerContext &context)
|
|||
}
|
||||
}
|
||||
|
||||
void ConverterRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
|
||||
void ConverterRunner::run(const Plasma::QueryMatch &match)
|
||||
{
|
||||
Q_UNUSED(context)
|
||||
#warning TODO: notify the user that the data has been copied to the clipboard
|
||||
// other runners silently do the same (e.g. spellcheck), how would the user know what just happened?
|
||||
const QString data = match.data().toString();
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
~ConverterRunner();
|
||||
|
||||
void match(Plasma::RunnerContext &context);
|
||||
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match);
|
||||
void run(const Plasma::QueryMatch &match);
|
||||
|
||||
private:
|
||||
QStringList m_separators;
|
||||
|
|
|
@ -159,9 +159,8 @@ void KateSessions::match(Plasma::RunnerContext &context)
|
|||
}
|
||||
}
|
||||
|
||||
void KateSessions::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
|
||||
void KateSessions::run(const Plasma::QueryMatch &match)
|
||||
{
|
||||
Q_UNUSED(context)
|
||||
QString session = match.data().toString();
|
||||
kDebug() << "Open Kate Session " << session;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ class KateSessions : public Plasma::AbstractRunner {
|
|||
~KateSessions();
|
||||
|
||||
void match(Plasma::RunnerContext &context);
|
||||
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match);
|
||||
void run(const Plasma::QueryMatch &match);
|
||||
|
||||
private Q_SLOTS:
|
||||
void loadSessions();
|
||||
|
|
|
@ -137,9 +137,8 @@ void KonsoleSessions::match(Plasma::RunnerContext &context)
|
|||
}
|
||||
}
|
||||
|
||||
void KonsoleSessions::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
|
||||
void KonsoleSessions::run(const Plasma::QueryMatch &match)
|
||||
{
|
||||
Q_UNUSED(context)
|
||||
const QString session = match.data().toString();
|
||||
kDebug() << "Open Konsole Session " << session;
|
||||
|
||||
|
|
|
@ -33,10 +33,11 @@ public:
|
|||
~KonsoleSessions();
|
||||
|
||||
void match(Plasma::RunnerContext &context);
|
||||
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match);
|
||||
void run(const Plasma::QueryMatch &match);
|
||||
|
||||
protected slots:
|
||||
void loadSessions();
|
||||
|
||||
private:
|
||||
KIcon m_icon;
|
||||
QHash<QString, QString> m_sessions;
|
||||
|
|
|
@ -115,10 +115,9 @@ void SpellCheckRunner::match(Plasma::RunnerContext &context)
|
|||
}
|
||||
}
|
||||
|
||||
void SpellCheckRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
|
||||
void SpellCheckRunner::run(const Plasma::QueryMatch &match)
|
||||
{
|
||||
Q_UNUSED(context)
|
||||
//Copy words to clipboard
|
||||
// Copy words to clipboard
|
||||
kapp->clipboard()->setText(match.data().toString());
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
SpellCheckRunner(QObject* parent, const QVariantList &args);
|
||||
|
||||
void match(Plasma::RunnerContext &context);
|
||||
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action);
|
||||
void run(const Plasma::QueryMatch &action);
|
||||
|
||||
void reloadConfiguration();
|
||||
|
||||
|
|
|
@ -78,10 +78,8 @@ void KEmuControlRunner::match(Plasma::RunnerContext &context)
|
|||
}
|
||||
}
|
||||
|
||||
void KEmuControlRunner::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
|
||||
void KEmuControlRunner::run(const Plasma::QueryMatch &match)
|
||||
{
|
||||
Q_UNUSED(context)
|
||||
|
||||
const QStringList data = match.data().toStringList();
|
||||
Q_ASSERT(data.size() == 2);
|
||||
const QString command = data.at(0);
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
~KEmuControlRunner();
|
||||
|
||||
void match(Plasma::RunnerContext &context);
|
||||
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match);
|
||||
void run(const Plasma::QueryMatch &match);
|
||||
};
|
||||
|
||||
K_EXPORT_PLASMA_RUNNER(kemucontrol, KEmuControlRunner)
|
||||
|
|
Loading…
Add table
Reference in a new issue