Commit 20351cf6 authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

No need for this class anymore

parent 60c103cb
/*
* Copyright 2012 Aurélien Gâteau <agateau@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import QtQuick 1.1
import org.kde.sal.fixes 0.1 as SalFixes
import org.kde.sal.components 0.1 as SalComponents
/**
* Inherits from Plasma RunnerModel to add SAL-related features
*/
SalFixes.RunnerModel {
id: main
property string name: main.runnerInfoProvider.name
property alias arguments: main.runners
property QtObject favoriteModel
property QtObject runnerInfoProvider: SalComponents.RunnerInfoProvider {
runnerId: main.runners.length >= 1 ? main.runners[0] : ""
}
function favoriteAction(obj) {
return obj.runnerid == "services" ? "add" : ""
}
function triggerFavoriteAction(obj) {
if (obj.runnerid != "services") {
return;
}
favoriteModel.append(obj.data);
}
function trigger(row) {
run(row);
return true;
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment