Skip to content
Snippets Groups Projects
Commit b08ecda9 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.property restrict size of siblingcombobox

parent 6949453c
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ class SiblingComboBox : public QComboBox ...@@ -43,7 +43,7 @@ class SiblingComboBox : public QComboBox
Q_PROPERTY(QVariant selectedItemNode READ selectedItemNode WRITE setSelectedItemNode NOTIFY selectedItemNodeChanged) Q_PROPERTY(QVariant selectedItemNode READ selectedItemNode WRITE setSelectedItemNode NOTIFY selectedItemNodeChanged)
public: public:
SiblingComboBox(QWidget *parent = 0) : QComboBox(parent) {} SiblingComboBox(QWidget *parent = 0) : QComboBox(parent) { setMaximumWidth(140); }
QVariant itemNode() const { return QVariant::fromValue(m_itemNode.modelNode()); } QVariant itemNode() const { return QVariant::fromValue(m_itemNode.modelNode()); }
QVariant selectedItemNode() const { return QVariant::fromValue(m_selectedItemNode.modelNode()); } QVariant selectedItemNode() const { return QVariant::fromValue(m_selectedItemNode.modelNode()); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment