adding thumbnail class to ServiceItem class for use
This commit is contained in:
parent
193254e1ba
commit
e9c2ec1caf
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <qobject.h>
|
#include <qobject.h>
|
||||||
|
#include "thumbnail.h"
|
||||||
|
|
||||||
class ServiceItem : public QObject
|
class ServiceItem : public QObject
|
||||||
{
|
{
|
||||||
|
@ -17,6 +18,7 @@ class ServiceItem : public QObject
|
||||||
Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged)
|
Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged)
|
||||||
Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
|
Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
|
||||||
Q_PROPERTY(bool selected READ selected WRITE setSelected NOTIFY selectedChanged)
|
Q_PROPERTY(bool selected READ selected WRITE setSelected NOTIFY selectedChanged)
|
||||||
|
// Q_PROPERTY(Thumbnail thumbnail READ thumbnail WRITE setThumbnail NOTIFY thumbnailChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ServiceItem(QObject *parent = nullptr);
|
explicit ServiceItem(QObject *parent = nullptr);
|
||||||
|
@ -43,6 +45,7 @@ public:
|
||||||
int fontSize() const;
|
int fontSize() const;
|
||||||
bool active() const;
|
bool active() const;
|
||||||
bool selected() const;
|
bool selected() const;
|
||||||
|
// Thumbnail thumbnail() const;
|
||||||
|
|
||||||
void setName(QString name);
|
void setName(QString name);
|
||||||
void setType(QString type);
|
void setType(QString type);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue