pgLab/pglab/CustomDataRole.h

24 lines
655 B
C
Raw Normal View History

2018-09-02 10:30:30 +00:00
#ifndef CUSTOMDATAROLE_H
#define CUSTOMDATAROLE_H
#include <Qt>
/// Returned by a model when asked for CustomReferencedTypeRole
///
/// Models will probably only be asked this for columns for which they returned
/// Oid_Oid for the CustomDataTypeRole
enum class ReferencedType {
PgType,
PgNamespace,
PgRole
};
2018-09-02 10:30:30 +00:00
enum CustomDataRole {
CustomDataTypeRole = Qt::UserRole, ///< Requist the basic type of the value
CustomReferencedTypeRole, ///<
// Add other enum before this one is we might want to have multiple hidden values
FirstHiddenValue, ///< Used to request value from a model which is not handed to the view
2018-09-02 10:30:30 +00:00
};
#endif // CUSTOMDATAROLE_H