Add booltostring functions to datahelpers

This commit is contained in:
elecpower
2021-03-14 07:33:33 +11:00
parent 110e1a5fc7
commit fe5294c127
4 changed files with 32 additions and 6 deletions
+9
View File
@@ -49,6 +49,15 @@ class FieldRange
namespace DataHelpers
{
enum BoolFormat {
BOOL_FMT_ENABLEDISABLE,
BOOL_FMT_ONOFF,
BOOL_FMT_TRUEFALSE,
BOOL_FMT_YN,
BOOL_FMT_YESNO
};
QString boolToString(const bool value, const BoolFormat format);
QString getElementName(const QString & prefix, const unsigned int index, const char * name = 0, const bool padding = false);
}