Engauge Digitizer 2
Loading...
Searching...
No Matches
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

◆ pointShapeToString()

QString pointShapeToString ( PointShape pointShape)

Definition at line 10 of file PointShape.cpp.

11{
12 QString rtn;
13
14 switch (pointShape) {
16 rtn = QObject::tr ("Circle");
17 break;
18
20 rtn = QObject::tr ("Cross");
21 break;
22
24 rtn = QObject::tr ("Diamond");
25 break;
26
28 rtn = QObject::tr ("Hourglass");
29 break;
30
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}
@ POINT_SHAPE_X
Definition PointShape.h:18
@ POINT_SHAPE_DIAMOND
Definition PointShape.h:15
@ POINT_SHAPE_CIRCLE
Definition PointShape.h:13
@ POINT_SHAPE_TRIANGLE
Definition PointShape.h:17
@ POINT_SHAPE_TRIANGLE2
Definition PointShape.h:20
@ POINT_SHAPE_HOURGLASS
Definition PointShape.h:19
@ POINT_SHAPE_CROSS
Definition PointShape.h:14
@ POINT_SHAPE_SQUARE
Definition PointShape.h:16