Files
Sourcetrail/src/lib_gui/qt/element/QtTable.h
T
Eberhard Graether 29cfbe0f66 logic: error limit and better user experience (issue #385)
* only show up to 1000 errors in table and code view
* click button in bottom right of error table to show all
* same error order in code and table
* highlight error line when switching reference in code view
* improved error view performance

bug id = 385
2017-05-30 23:11:20 +02:00

33 lines
461 B
C++

#ifndef QT_TABLE_H
#define QT_TABLE_H
#include <QTableView>
class QtTable
: public QTableView
{
Q_OBJECT
public:
QtTable(QWidget* parent = nullptr);
virtual ~QtTable();
void updateRows();
void setTableModel(QAbstractItemModel* model);
int getFilledRowCount();
void showFirstRow();
void showLastRow();
bool hasSelection() const;
protected:
virtual void resizeEvent(QResizeEvent* event);
private:
float m_rowsToFill;
};
#endif // QT_TABLE_H