mirror of
				https://github.com/python-LimeReport/LimeReport.git
				synced 2025-10-31 05:42:03 +03:00 
			
		
		
		
	Clear button has been added
This commit is contained in:
		| @@ -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 | 
		Reference in New Issue
	
	Block a user