remove loadui/loadservice

This commit is contained in:
Marco Martin 2013-08-08 15:51:29 +02:00
parent f69f40c909
commit 8c93e1f6cd
2 changed files with 0 additions and 23 deletions

View File

@ -99,22 +99,6 @@ QString DeclarativeAppletScript::filePath(const QString &type, const QString &fi
return package().filePath(type.toLocal8Bit().constData(), file);
}
QObject *DeclarativeAppletScript::loadui(const QString &filename)
{
QFile f(filename);
if (!f.open(QIODevice::ReadOnly)) {
qWarning() << i18n("Unable to open '%1'",filename);
return 0;
}
QUiLoader loader;
QWidget *w = loader.load(&f);
f.close();
return w;
}
void DeclarativeAppletScript::constraintsEvent(Plasma::Types::Constraints constraints)
{
if (constraints & Plasma::Types::FormFactorConstraint) {
@ -157,11 +141,6 @@ bool DeclarativeAppletScript::include(const QString &path)
return false;
}
QObject *DeclarativeAppletScript::loadService(const QString &pluginName)
{
return Plasma::PluginLoader::self()->loadService(pluginName, QVariantList(), applet());
}
QList<QAction*> DeclarativeAppletScript::contextualActions()
{
if (!m_interface) {

View File

@ -48,8 +48,6 @@ public:
bool include(const QString &path);
static QObject *loadui(const QString &filename);
QObject *loadService(const QString &pluginName);
public Q_SLOTS:
void executeAction(const QString &name);