Merge branch 'master' into 'master'
[GB.QT5] Workaround "Setting a QCompleter on non-editable QComboBox is not allowed" message See merge request gambas/gambas!112
This commit is contained in:
commit
fe2deabfbd
1 changed files with 3 additions and 0 deletions
|
@ -754,7 +754,10 @@ MyComboBox::MyComboBox(QWidget *parent) :
|
||||||
QComboBox(parent)
|
QComboBox(parent)
|
||||||
{
|
{
|
||||||
_sorted = _dirty = false;
|
_sorted = _dirty = false;
|
||||||
|
#if QT5
|
||||||
|
#else
|
||||||
setCompleter(0);
|
setCompleter(0);
|
||||||
|
#endif
|
||||||
setInsertPolicy(NoInsert);
|
setInsertPolicy(NoInsert);
|
||||||
calcMinimumHeight();
|
calcMinimumHeight();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue