Engauge Digitizer  2
DataKey.cpp
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #include "DataKey.h"
8 
9 QString dataKeyToString (DataKey dataKey)
10 {
11  QString rtn;
12 
13  switch (dataKey) {
14 
16  rtn = "DATA_KEY_IDENTIFIER";
17  break;
18 
20  rtn = "DATA_KEY_GRAPHICS_ITEM_TYPE";
21  break;
22 
24  rtn = "DATA_KEY_POSITION_HAS_CHANGED";
25  break;
26 
27  default:
28  rtn = "<unknown>";
29  }
30 
31  return rtn;
32 }
QString dataKeyToString(DataKey dataKey)
Definition: DataKey.cpp:9
Unique identifier for QGraphicsItem object
Definition: DataKey.h:15
DataKey
Index values for storing item details in QGraphicsItem using setData/data.
Definition: DataKey.h:13
Item type (i.e. image versus point)
Definition: DataKey.h:16