You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
361 B
C
18 lines
361 B
C
#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
|
|
|