mirror of
https://github.com/jbagg/QtZeroConf.git
synced 2025-08-04 19:44:25 +02:00
QZeroConfService became a Q_GADGET for easy usage in QML
This commit is contained in:
@@ -8,7 +8,14 @@ class QZeroConfServiceData;
|
||||
|
||||
class QZeroConfService
|
||||
{
|
||||
Q_GADGET
|
||||
Q_PROPERTY( QString name READ name )
|
||||
Q_PROPERTY( QString type READ type )
|
||||
Q_PROPERTY( QString domain READ domain )
|
||||
Q_PROPERTY( QString host READ host )
|
||||
|
||||
public:
|
||||
|
||||
QZeroConfService();
|
||||
QZeroConfService(const QZeroConfService &);
|
||||
QZeroConfService &operator=(const QZeroConfService &);
|
||||
@@ -42,4 +49,6 @@ private:
|
||||
QSharedDataPointer<QZeroConfServiceData> data;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(QZeroConfService)
|
||||
|
||||
#endif // QZEROCONFSERVICE_H
|
||||
|
Reference in New Issue
Block a user