From 4ecb50277cd58506a9c466ca21a1b852cc28210b Mon Sep 17 00:00:00 2001 From: Vladyslav Tronko Date: Mon, 16 Jan 2017 04:16:17 +0200 Subject: [PATCH] Set adjustment rules for combobox within foreign key editor --- src/ForeignKeyEditorDelegate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ForeignKeyEditorDelegate.cpp b/src/ForeignKeyEditorDelegate.cpp index 0668b144..93192325 100644 --- a/src/ForeignKeyEditorDelegate.cpp +++ b/src/ForeignKeyEditorDelegate.cpp @@ -18,6 +18,7 @@ public: , clauseEdit(new QLineEdit(this)) , m_btnReset(new QPushButton(tr("&Reset"), this)) { + idsComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents); clauseEdit->setPlaceholderText(tr("(foreign key clauses(ON UPDATE, ON DELETE etc.)")); QHBoxLayout* layout = new QHBoxLayout(this);