pgLab/pglab/CustomDataRole.h
eelke 11459e1e12 Show sizes
table, index, toast and total size per Table
size of each index
2021-03-10 19:06:40 +01:00

30 lines
834 B
C

#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
};
///
enum DataMeaning {
DataMeaningNormal,
DataMeaningBytes ///< the value represents bytes pretty print in KiB, MiB, GiB, TiB, PiB, EiB
};
enum CustomDataRole {
CustomDataTypeRole = Qt::UserRole, ///< Requist the basic type of the value
CustomReferencedTypeRole, ///<
CustomDataMeaningRole,
// Add other enum before this one as we might want to have multiple hidden values
FirstHiddenValue, ///< Used to request value from a model which is not handed to the view
};
#endif // CUSTOMDATAROLE_H