Skip to content

Commit

Permalink
qvariant: metatype ServiceFrontendPtr should be declared
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Oct 8, 2023
1 parent 3e74d7b commit 0b48e89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/remoteservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RemoteService::RemoteService(QObject * parent)
QVariant RemoteService::getServiceHandle()
{
QVariant var;
var.setValue<ServiceFrontendPtr>(m_service);
var.setValue(m_service);
return var;
}

Expand Down
2 changes: 2 additions & 0 deletions src/servicefrontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,6 @@ private slots:
QSharedPointer<ServiceMessengerReplica> m_messenger;
};

Q_DECLARE_METATYPE(ServiceFrontendPtr)

#endif // SERVICEFRONTEND_H

0 comments on commit 0b48e89

Please sign in to comment.