Used slightly different approach. This tab is fully build in source code using subclasses to adjust behaviour of widgets for reuse in the other tabs. Uses custom proxy model for filtering triggers for correct table and supporting out of the box sorting by QTableView. SqlCodePreview: QPlainTextEditor which sql highlighter and in readonly mode but allows copy.
12 lines
260 B
C
12 lines
260 B
C
#ifndef CUSTOMDATAROLE_H
|
|
#define CUSTOMDATAROLE_H
|
|
|
|
#include <Qt>
|
|
|
|
enum CustomDataRole {
|
|
CustomDataTypeRole = Qt::UserRole,
|
|
// Add other enum before this one is we might want to have multiple hidden values
|
|
FirstHiddenValue,
|
|
};
|
|
|
|
#endif // CUSTOMDATAROLE_H
|