Index: sources/view/dg/data/VDGOperationModeData.cpp =================================================================== diff -u -r6cad9b004e904200b71de7431c745795256080df -rf688ed9f1c64a2603a6d10fbb090b257a43e1f6f --- sources/view/dg/data/VDGOperationModeData.cpp (.../VDGOperationModeData.cpp) (revision 6cad9b004e904200b71de7431c745795256080df) +++ sources/view/dg/data/VDGOperationModeData.cpp (.../VDGOperationModeData.cpp) (revision f688ed9f1c64a2603a6d10fbb090b257a43e1f6f) @@ -24,22 +24,8 @@ opMode ( vData.mOpMode ); } -QString VDGOperationMode::opModeText(GuiDGOpModes vEnum) -{ - // TEST : this code is the place holder for the alarms description mapping - // since it is another feature - // it returns the enum name for now - const QMetaObject *mo = qt_getEnumMetaObject(vEnum); - int enumIdx = mo->indexOfEnumerator(qt_getEnumName(vEnum)); - const char *key = mo->enumerator(enumIdx).valueToKey(vEnum); - if (key) - return qPrintable(key); - else - return QString("UNDEFINED [%1]").arg(vEnum); -} - QString View::VDGOperationMode::text() { - QString text = opModeText(static_cast(opMode())); + QString text = Gui::enumString(static_cast(opMode())); return text; }