mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
Allow jumping between the filter input fields by pressing Tab and Shift+Tab. See issue #106.
37 lines
666 B
C++
37 lines
666 B
C++
#ifndef FILTERTABLEHEADER_H
|
|
#define FILTERTABLEHEADER_H
|
|
|
|
#include <QHeaderView>
|
|
#include <QList>
|
|
|
|
class QLineEdit;
|
|
class QTableView;
|
|
class FilterLineEdit;
|
|
|
|
class FilterTableHeader : public QHeaderView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FilterTableHeader(QTableView* parent = 0);
|
|
virtual QSize sizeHint() const;
|
|
|
|
public slots:
|
|
void generateFilters(int number, bool bKeepValues = false);
|
|
void adjustPositions();
|
|
|
|
signals:
|
|
void filterChanged(int column, QString value);
|
|
|
|
protected:
|
|
virtual void updateGeometries();
|
|
|
|
private slots:
|
|
void inputChanged(const QString& new_value);
|
|
|
|
private:
|
|
QList<FilterLineEdit*> filterWidgets;
|
|
};
|
|
|
|
#endif
|