Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
PointShape.cpp File Reference
#include "PointShape.h"
#include <QObject>
Include dependency graph for PointShape.cpp:

Go to the source code of this file.

Functions

QString pointShapeToString (PointShape pointShape)
 

Function Documentation

QString pointShapeToString ( PointShape  pointShape)

Definition at line 10 of file PointShape.cpp.

11 {
12  QString rtn;
13 
14  switch (pointShape) {
15  case POINT_SHAPE_CIRCLE:
16  rtn = QObject::tr ("Circle");
17  break;
18 
19  case POINT_SHAPE_CROSS:
20  rtn = QObject::tr ("Cross");
21  break;
22 
24  rtn = QObject::tr ("Diamond");
25  break;
26 
28  rtn = QObject::tr ("Hourglass");
29  break;
30 
31  case POINT_SHAPE_SQUARE:
32  rtn = QObject::tr ("Square");
33  break;
34 
36  rtn = QObject::tr ("Triangle");
37  break;
38 
40  rtn = QObject::tr ("Triangle2");
41  break;
42 
43  case POINT_SHAPE_X:
44  rtn = QObject::tr ("X");
45  break;
46  }
47 
48  return rtn;
49 }