mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 12:34:39 +03:00
Clear button has been added
This commit is contained in:
parent
7a512eca0b
commit
5f9ee85dba
@ -42,6 +42,7 @@
|
||||
#include <QDesktopWidget>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#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);
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 959 B After Width: | Height: | Size: 168 B |
Loading…
Reference in New Issue
Block a user