summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/data/barrenderitem_p.h
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-01-16 09:29:38 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-01-16 09:40:39 +0200
commit3e7dc5bd1769e4578733f7ce0f4eba72346b6d98 (patch)
treeeb768f3128237608b1a1c385877fc84d7d32dcd6 /src/datavisualization/data/barrenderitem_p.h
parentde93a42512e58c598427178373f0e3e59b04dec7 (diff)
Docs updated after namespace macro removal
- some links do not work Task-number: QTRD-2594 Change-Id: I255a4c12fe09e1a708c068a68073c1c99d6382b6 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/data/barrenderitem_p.h')
-rw-r--r--src/datavisualization/data/barrenderitem_p.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/datavisualization/data/barrenderitem_p.h b/src/datavisualization/data/barrenderitem_p.h
index 5a44e2fd..f44ba2b4 100644
--- a/src/datavisualization/data/barrenderitem_p.h
+++ b/src/datavisualization/data/barrenderitem_p.h
@@ -47,7 +47,15 @@ public:
inline const QPoint &position() const { return m_position; }
// Actual cached data value of the bar (needed to trigger label reformats)
- inline void setValue(float value);
+ inline void setValue(float value)
+ {
+ m_value = value;
+ // Force reformatting on next access by setting label string to null string
+ if (!m_sliceLabel.isNull())
+ setSliceLabel(QString());
+ if (!m_selectionLabel.isNull())
+ setSelectionLabel(QString());
+ }
inline float value() const { return m_value; }
// Normalized bar height
@@ -77,16 +85,6 @@ protected:
friend class QBarDataItem;
};
-void BarRenderItem::setValue(float value)
-{
- m_value = value;
- // Force reformatting on next access by setting label string to null string
- if (!m_sliceLabel.isNull())
- setSliceLabel(QString());
- if (!m_selectionLabel.isNull())
- setSelectionLabel(QString());
-}
-
typedef QVector<BarRenderItem> BarRenderItemRow;
typedef QVector<BarRenderItemRow> BarRenderItemArray;