mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 20:44:39 +03:00
Clear button has been added
This commit is contained in:
parent
7a512eca0b
commit
5f9ee85dba
@ -42,6 +42,7 @@
|
|||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
#include <QSortFilterProxyModel>
|
#include <QSortFilterProxyModel>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
|
#include <QPushButton>
|
||||||
|
|
||||||
#include "lrreportdesignwindow.h"
|
#include "lrreportdesignwindow.h"
|
||||||
#include "lrbandsmanager.h"
|
#include "lrbandsmanager.h"
|
||||||
@ -517,12 +518,16 @@ void ReportDesignWindow::createObjectInspector()
|
|||||||
QWidget* w = new QWidget(objectDoc);
|
QWidget* w = new QWidget(objectDoc);
|
||||||
QVBoxLayout* l = new QVBoxLayout(w);
|
QVBoxLayout* l = new QVBoxLayout(w);
|
||||||
QLineEdit* le = new QLineEdit(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"));
|
le->setPlaceholderText(tr("Filter"));
|
||||||
connect(le, SIGNAL(textChanged(const QString&)), this, SLOT(slotFilterTextChanged(const QString&)));
|
connect(le, SIGNAL(textChanged(const QString&)), this, SLOT(slotFilterTextChanged(const QString&)));
|
||||||
// QHBoxLayout* h = new QHBoxLayout(w);
|
QHBoxLayout* h = new QHBoxLayout();
|
||||||
// h->addWidget(new QLabel(tr("Filter")));
|
h->setSpacing(2);
|
||||||
// h->addWidget(le);
|
h->addWidget(le);
|
||||||
l->addWidget(le);
|
h->addWidget(pbClear);
|
||||||
|
l->addLayout(h);
|
||||||
l->addWidget(m_objectInspector);
|
l->addWidget(m_objectInspector);
|
||||||
l->setContentsMargins(2,2,2,2);
|
l->setContentsMargins(2,2,2,2);
|
||||||
w->setLayout(l);
|
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