remove loadui/loadservice
This commit is contained in:
parent
f69f40c909
commit
8c93e1f6cd
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user