cutter/src/widgets/QuickFilterView.h
Vanellope ac64bbface Segments implemented (#851)
* Segments implemented

* Not util anymore but common

* Fixed the strings to be shown as the headers better

* Quick Filter functionality is supported on both Section and Segment Widget

* QuickFilter should basically be on but for some widgets, they should be off
2018-10-20 21:20:06 +03:00

35 lines
557 B
C++

#ifndef QUICKFILTERVIEW_H
#define QUICKFILTERVIEW_H
#include <memory>
#include <QWidget>
namespace Ui {
class QuickFilterView;
}
class QuickFilterView : public QWidget
{
Q_OBJECT
public:
explicit QuickFilterView(QWidget *parent = nullptr, bool defaultOn = true);
~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