mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
Use a common format for all include guards, make sure each header file has one and make sure it's named after the file name. And as a random extra in this commit: Make sure the gen_version.h file generated by cmake ends with a line break. Closes #59.
36 lines
613 B
C++
36 lines
613 B
C++
#ifndef FILTERTABLEHEADER_H
|
|
#define FILTERTABLEHEADER_H
|
|
|
|
#include <QHeaderView>
|
|
#include <QList>
|
|
|
|
class QLineEdit;
|
|
class QTableView;
|
|
|
|
class FilterTableHeader : public QHeaderView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FilterTableHeader(QTableView* parent = 0);
|
|
virtual QSize sizeHint() const;
|
|
|
|
public slots:
|
|
void generateFilters(int number);
|
|
void adjustPositions();
|
|
|
|
signals:
|
|
void filterChanged(int column, QString value);
|
|
|
|
protected:
|
|
virtual void updateGeometries();
|
|
|
|
private slots:
|
|
void inputChanged(const QString& new_value);
|
|
|
|
private:
|
|
QList<QLineEdit*> filterWidgets;
|
|
};
|
|
|
|
#endif
|