#ifndef DEFINE_H #define DEFINE_H #define ALL(arr) arr.begin(), arr.end() // default rights #define PERM_READ "READ" #define PERM_ADD "ADD" #define PERM_EDIT "EDIT" #define PERM_DELETE "DELETE" #define DEC_MULTIPLE 100 #define TO_DEC(num) QDecDouble((double)num / DEC_MULTIPLE) #define FROM_DEC(num) num.toDouble() * DEC_MULTIPLE #endif // DEFINE_H