summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/utils/utils_p.h
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-04-12 12:48:57 +0300
committerMika Salmela <mika.salmela@digia.com>2013-04-12 17:53:24 +0300
commitbc6b83691901e4fa897e61182acf9b2ddaddc804 (patch)
treeaef06ad48c1f9c16db4c363974dd177d7a7ae984 /src/datavis3d/utils/utils_p.h
parent7dedf74c6be8c23bd1a5640cbe0c960a36c6b9db (diff)
Improved label drawing and font size adjustment
Change-Id: I3421b6f6774b44b02aecef87afc1ceaafebc9fbe Change-Id: I3421b6f6774b44b02aecef87afc1ceaafebc9fbe Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'src/datavis3d/utils/utils_p.h')
-rw-r--r--src/datavis3d/utils/utils_p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/datavis3d/utils/utils_p.h b/src/datavis3d/utils/utils_p.h
index 028cd716..45de673e 100644
--- a/src/datavis3d/utils/utils_p.h
+++ b/src/datavis3d/utils/utils_p.h
@@ -43,6 +43,7 @@
#define UTILS_P_H
#include "qdatavis3dglobal.h"
+#include "q3dbars.h"
class QVector3D;
class QColor;
@@ -59,8 +60,11 @@ public:
static QVector3D vectorFromColor(const QColor &color);
static void printText(QPainter *painter, const QString &text, const QPoint &position
, bool absoluteCoords = true, qreal rotation = 0, qreal scale = 1.0f);
- static QImage printTextToImage(const QString &text, const QColor &bgrColor
- , const QColor &txtColor, bool noBackground = false);
+ static QImage printTextToImage(const QString &text
+ , const QColor &bgrColor
+ , const QColor &txtColor
+ , Q3DBars::LabelTransparency transparency);
+ static QVector3D getSelection(QPoint mousepos, int height);
};
QTCOMMERCIALDATAVIS3D_END_NAMESPACE