Skip to content

Commit ce8652a

Browse files
authored
fixedWidth in Dropdown should be settable (#5749)
the fixedWith property is set if the fixedWidth is set, but this does not work when a DropDown is in a ComponentsList. In this case just set the fixedWidth to true, to force the DropDown to get always the same width.
1 parent 119dd1f commit ce8652a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

QMLComponents/controls/comboboxbase.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ComboBoxBase : public JASPListControl, public BoundControlBase
3535
Q_PROPERTY( QString startValue READ startValue WRITE setStartValue NOTIFY startValueChanged )
3636
Q_PROPERTY( QString currentColumnType READ currentColumnType NOTIFY currentColumnTypeChanged )
3737
Q_PROPERTY( QString currentColumnTypeIcon READ currentColumnTypeIcon NOTIFY currentColumnTypeIconChanged )
38-
Q_PROPERTY( bool fixedWidth READ fixedWidth NOTIFY fixedWidthChanged )
38+
Q_PROPERTY( bool fixedWidth READ fixedWidth WRITE setFixedWidth NOTIFY fixedWidthChanged )
3939

4040
public:
4141
ComboBoxBase(QQuickItem* parent = nullptr);
@@ -80,6 +80,7 @@ protected slots:
8080
void activatedSlot(int index);
8181

8282
GENERIC_SET_FUNCTION(StartValue, _startValue, startValueChanged, QString )
83+
GENERIC_SET_FUNCTION(FixedWidth, _fixedWidth, fixedWidthChanged, bool )
8384

8485
protected:
8586
bool _checkLevelsConstraints() override;

0 commit comments

Comments
 (0)