From 4e9170138752d9954ae37e422dd0990534c2a4a6 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Mon, 18 Feb 2019 13:55:53 +0300 Subject: [PATCH] ObjectInspector QPushButton -> QToolButton --- limereport/objectinspector/lrobjectinspectorwidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/limereport/objectinspector/lrobjectinspectorwidget.cpp b/limereport/objectinspector/lrobjectinspectorwidget.cpp index cfc528a..2fbfff0 100644 --- a/limereport/objectinspector/lrobjectinspectorwidget.cpp +++ b/limereport/objectinspector/lrobjectinspectorwidget.cpp @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include "lrglobal.h" #include "lrobjectinspectorwidget.h" @@ -177,8 +177,9 @@ ObjectInspectorWidget::ObjectInspectorWidget(QWidget *parent) m_objectInspectorView->setModel(m_filterModel); QVBoxLayout* l = new QVBoxLayout(); QLineEdit* le = new QLineEdit(this); - QPushButton * pbClear = new QPushButton(QIcon(":/items/clear.png"),"",this); + QToolButton * pbClear = new QToolButton(this); pbClear->setToolTip(tr("Clear")); + pbClear->setIcon(QIcon(":/items/clear.png")); connect(pbClear, SIGNAL(clicked()), le, SLOT(clear())); le->setPlaceholderText(tr("Filter")); connect(le, SIGNAL(textChanged(const QString&)), this, SLOT(slotFilterTextChanged(const QString&))); @@ -189,6 +190,7 @@ ObjectInspectorWidget::ObjectInspectorWidget(QWidget *parent) l->addLayout(h); l->addWidget(m_objectInspectorView); l->setContentsMargins(2,2,2,2); + l->setSpacing(2); this->setLayout(l); }