diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-04-02 23:52:24 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-05-31 08:49:00 +0000 |
commit | 588008a3c22007bf5e21b22a702df833f3ae957b (patch) | |
tree | cd69fb982b918a00566715a6df579a84355a6dc8 | |
parent | b5f467beaf58daf580e8c5b376e317c34a28b16a (diff) | |
download | qttools-588008a3c22007bf5e21b22a702df833f3ae957b.tar.gz |
Designer: Fix the toolbar dimensions of the ActionEditor
The filter lineedit sits in a layout which has default contentmargins.
Thich change sets the contentmargins to 0, and the toolbar now looks
good in Designer, as-well in Qt Creator.
Change-Id: I941a1f52e627a5c509d27b34b31fb5ebb699cbcc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | src/designer/src/lib/shared/actioneditor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/designer/src/lib/shared/actioneditor.cpp b/src/designer/src/lib/shared/actioneditor.cpp index a12bec729..c326bd5d2 100644 --- a/src/designer/src/lib/shared/actioneditor.cpp +++ b/src/designer/src/lib/shared/actioneditor.cpp @@ -198,6 +198,7 @@ ActionEditor::ActionEditor(QDesignerFormEditorInterface *core, QWidget *parent, // filter m_filterWidget = new QWidget(toolbar); QHBoxLayout *filterLayout = new QHBoxLayout(m_filterWidget); + filterLayout->setContentsMargins(0, 0, 0, 0); QLineEdit *filterLineEdit = new QLineEdit(m_filterWidget); connect(filterLineEdit, &QLineEdit::textChanged, this, &ActionEditor::setFilter); filterLineEdit->setPlaceholderText(tr("Filter")); |