* 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
33 lines
461 B
C++
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
|