Commit ce2f80c2 authored by Marco Bubke's avatar Marco Bubke Committed by Tim Jenssen
Browse files

QmlDesigner: Add visibily to ItemLibraryItem

Change-Id: I5fa1b249e6a2d317e06ed9ff04597de590228f86
Reviewed-by: default avatarTim Jenssen <>
parent 670edda4
......@@ -75,4 +75,19 @@ void ItemLibraryItem::setItemIconSize(const QSize &itemIconSize)
m_iconSize = itemIconSize;
bool ItemLibraryItem::setVisible(bool isVisible)
if (isVisible != m_isVisible) {
m_isVisible = isVisible;
return true;
return false;
bool ItemLibraryItem::isVisible() const
return m_isVisible;
} // namespace QmlDesigner
......@@ -58,8 +58,12 @@ public:
void setItemIconPath(const QString &iconPath);
void setItemIconSize(const QSize &itemIconSize);
bool setVisible(bool isVisible);
bool isVisible() const;
int m_libId;
bool m_isVisible;
QString m_name;
QString m_iconPath;
QSize m_iconSize;
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