Engauge Digitizer  2
QtToString.h
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 #ifndef QT_ENUM_TO_STRING_H
8 #define QT_ENUM_TO_STRING_H
9 
10 #include <QCursor>
11 #include <QString>
12 #include <QVector>
13 #include <QXmlStreamReader>
14 
15 class QLocale;
16 class QPointF;
17 class QTransform;
18 
19 extern QString QLocaleToString (const QLocale &locale);
20 extern QString QPointFToString (const QPointF &pos);
21 extern QString QRectFToString (const QRectF &rectF);
22 extern QString QtCursorToString (Qt::CursorShape cursorShape);
23 extern QString QTransformToString (const QTransform &transform);
24 extern QString QXmlStreamReaderTokenTypeToString (QXmlStreamReader::TokenType tokenType);
25 extern QString roleAsString (int role);
26 extern QString rolesAsString (const QVector<int> &roles);
27 
28 #endif // QT_ENUM_TO_STRING_H