Return QObject* instead of Service*

Service* is not understood as return type, QObject is.
This commit is contained in:
Sebastian Kügler 2013-08-14 03:26:43 +02:00
parent 7515f665c7
commit 7fb579610a
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ void DataSource::removeSource(const QString &source)
}
}
Plasma::Service *DataSource::serviceForSource(const QString &source)
QObject* DataSource::serviceForSource(const QString &source)
{
if (!m_services.contains(source)) {
Plasma::Service *service = m_dataEngine->serviceForSource(source);

View File

@ -98,7 +98,7 @@ public:
* @returns a Plasma::Service given a source name
* @arg QString source source name we want a service of
*/
Q_INVOKABLE Plasma::Service *serviceForSource(const QString &source);
Q_INVOKABLE QObject* serviceForSource(const QString &source);
/**
* Connect a new source. It adds it to connectedSources