Return QObject* instead of Service*
Service* is not understood as return type, QObject is.
This commit is contained in:
parent
7515f665c7
commit
7fb579610a
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user