Commit ed03cfec authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Add visible property to ItemLibraryItem

Change-Id: I22cd7d587f030343cbf71c62357b9752650e4711
Reviewed-by: default avatarTim Jenssen <>
parent c4461a83
......@@ -61,6 +61,7 @@ bool ItemLibraryItem::setVisible(bool isVisible)
if (isVisible != m_isVisible) {
m_isVisible = isVisible;
emit visibilityChanged();
return true;
......@@ -47,6 +47,7 @@ class ItemLibraryItem: public QObject {
Q_PROPERTY(QString itemName READ itemName FINAL)
Q_PROPERTY(QString itemLibraryIconPath READ itemLibraryIconPath FINAL)
Q_PROPERTY(QVariant sortingRole READ sortingRole FINAL)
Q_PROPERTY(QVariant visible READ isVisible NOTIFY visibilityChanged FINAL)
ItemLibraryItem(QObject *parent);
......@@ -62,6 +63,9 @@ public:
void setItemLibraryEntry(const ItemLibraryEntry &itemLibraryEntry);
QVariant itemLibraryEntry() const;
void visibilityChanged();
ItemLibraryEntry m_itemLibraryEntry;
bool m_isVisible;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment