diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-07-05 11:34:47 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-07-05 12:52:57 +0300 |
commit | 03276f3187bc58162e335b9a5739c1631344fa84 (patch) | |
tree | d491698251a0320fd2f8eadf8cd262211baebb59 /examples/spectrum | |
parent | 0963cf7feda67225700f4291264e68c9060046f6 (diff) |
Miscellaneous fixes
- Widget example now uses default QBarDataProxy directly
- Axes store labels in QStringLists instead of vectors
- Axes LabelItems as QList<LabelItem *> instead of QVector<LabelItem>
This allows better control of when label items are constructed
and destructed -> easier to keep track of textures.
- Removed label setting from QAbstractDataItem api, it should be
replaced with label format setter if we want individual items
to have custom labels.
- Added functionality to QBarDataItem
- Misc bug fixes
Change-Id: I01b3a5f3fc4acb8c1a826f19fa2762864430a088
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'examples/spectrum')
-rw-r--r-- | examples/spectrum/spectrumapp/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/spectrum/spectrumapp/main.cpp b/examples/spectrum/spectrumapp/main.cpp index 19f195fa..2fa0be8f 100644 --- a/examples/spectrum/spectrumapp/main.cpp +++ b/examples/spectrum/spectrumapp/main.cpp @@ -86,7 +86,7 @@ MainApp::MainApp(Q3DBars *window) m_lowFreq(SpectrumLowFreq), m_highFreq(SpectrumHighFreq) { - m_chart->setupSampleSpace(SpectrumNumBands, SpectrumNumBands * 2); + m_chart->setupSampleSpace(SpectrumNumBands * 2, SpectrumNumBands); // Disable grid m_chart->setGridVisible(false); // Disable auto-scaling of height by defining tick count and step, even though we don't draw grid |