From 5f9ee85dba8fd3827efba7b5e671be59aec7379e Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 14 Feb 2019 16:48:31 +0300 Subject: [PATCH] Clear button has been added --- limereport/lrreportdesignwindow.cpp | 13 +++++++++---- limereport/objectinspector/images/clear.png | Bin 959 -> 168 bytes 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/limereport/lrreportdesignwindow.cpp b/limereport/lrreportdesignwindow.cpp index 8a795f3..607af45 100644 --- a/limereport/lrreportdesignwindow.cpp +++ b/limereport/lrreportdesignwindow.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #include "lrreportdesignwindow.h" #include "lrbandsmanager.h" @@ -517,12 +518,16 @@ void ReportDesignWindow::createObjectInspector() QWidget* w = new QWidget(objectDoc); QVBoxLayout* l = new QVBoxLayout(w); QLineEdit* le = new QLineEdit(w); + QPushButton * pbClear = new QPushButton(QIcon(":/items/clear.png"),"",w); + pbClear->setToolTip(tr("Clear")); + connect(pbClear, SIGNAL(clicked()), le, SLOT(clear())); le->setPlaceholderText(tr("Filter")); connect(le, SIGNAL(textChanged(const QString&)), this, SLOT(slotFilterTextChanged(const QString&))); -// QHBoxLayout* h = new QHBoxLayout(w); -// h->addWidget(new QLabel(tr("Filter"))); -// h->addWidget(le); - l->addWidget(le); + QHBoxLayout* h = new QHBoxLayout(); + h->setSpacing(2); + h->addWidget(le); + h->addWidget(pbClear); + l->addLayout(h); l->addWidget(m_objectInspector); l->setContentsMargins(2,2,2,2); w->setLayout(l); diff --git a/limereport/objectinspector/images/clear.png b/limereport/objectinspector/images/clear.png index d6c0c3112560eca4e6b3e7ac393a0c38c06b5ddb..b72a5a5d155fc7037913ba34e1ffa83988815991 100644 GIT binary patch delta 151 zcmdnbzJhUrWIY=L1B3kM|A|0~Ey>&61xN$IPv_nBK#H@#BeIx*fm;}a85w5HkpK#^ zmw5WRvOi|x;}T~N$S$@43YmJkIEGl9PEJ@LVDM;?#@+n?@-y$ht(YLVp7Dhg2jh%J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