2017-12-19 18:38:06 +00:00
|
|
|
|
|
|
|
#ifndef QUICKFILTERVIEW_H
|
|
|
|
#define QUICKFILTERVIEW_H
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
namespace Ui {
|
|
|
|
class QuickFilterView;
|
2017-12-19 18:38:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class QuickFilterView : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-10-20 18:20:06 +00:00
|
|
|
explicit QuickFilterView(QWidget *parent = nullptr, bool defaultOn = true);
|
2017-12-19 18:38:06 +00:00
|
|
|
~QuickFilterView();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void showFilter();
|
|
|
|
void closeFilter();
|
|
|
|
void clearFilter();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void filterTextChanged(const QString &text);
|
|
|
|
void filterClosed();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::QuickFilterView> ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //QUICKFILTERVIEW_H
|