diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-04-09 23:25:51 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-04-10 10:23:16 +0000 |
commit | da3c5925d546282e99f13b450a674c7024fde9ed (patch) | |
tree | e9a0888d235b8477343167c0fdabe09e464c8401 /src/datavisualization/engine/bars3drenderer.cpp | |
parent | 1212170af2f4ade8497fb150c3ae0e5d52236e35 (diff) |
Use Qt::Alignment instead of the AlignmentFlag enum to represent flags
Because from Qt 5.12, the the right operator| is found in the Qt namespace
instead of in the global namespace.
One must still add the 'using' statement so this patch can be integrated
using a previous qtbase. But the statement can be removed once qtbase is
updated.
Task-number: QTBUG-67582
Change-Id: Ib79c4623e858988bb55a87ad4fb0c1e0ceee81cf
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/datavisualization/engine/bars3drenderer.cpp')
-rw-r--r-- | src/datavisualization/engine/bars3drenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datavisualization/engine/bars3drenderer.cpp b/src/datavisualization/engine/bars3drenderer.cpp index d3e8fc28..e8f96c87 100644 --- a/src/datavisualization/engine/bars3drenderer.cpp +++ b/src/datavisualization/engine/bars3drenderer.cpp @@ -844,7 +844,7 @@ void Bars3DRenderer::drawSlicedScene() viewMatrix, projectionMatrix, positionComp, totalSliceLabelRotation, 0, m_cachedSelectionMode, m_labelShader, m_labelObj, activeCamera, false, false, Drawer::LabelMid, - Qt::AlignmentFlag(Qt::AlignLeft | Qt::AlignTop), true); + Qt::AlignLeft | Qt::AlignTop, true); } if (!sliceGridLabels) { |