Commit b08ecda9 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.property restrict size of siblingcombobox

parent 6949453c
......@@ -43,7 +43,7 @@ class SiblingComboBox : public QComboBox
Q_PROPERTY(QVariant selectedItemNode READ selectedItemNode WRITE setSelectedItemNode NOTIFY selectedItemNodeChanged)
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 selectedItemNode() const { return QVariant::fromValue(m_selectedItemNode.modelNode()); }
......
Markdown is supported
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