summaryrefslogtreecommitdiffstats
path: root/examples/spectrum/app/waveform.h
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-11-20 18:27:28 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-21 14:01:44 +0100
commit21c39152055131d87614f051ca08566bd51f268f (patch)
tree95854dfdd5fee984742c18507eb6efca3d2761dc /examples/spectrum/app/waveform.h
parent9f4d6e824c1b75642150f448f8a359dbc95fb955 (diff)
Multimedia: examples coding style unification
Change-Id: Iffae3a276bb2b01f871aee76dc069ce006d69fce Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'examples/spectrum/app/waveform.h')
-rw-r--r--examples/spectrum/app/waveform.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/spectrum/app/waveform.h b/examples/spectrum/app/waveform.h
index 2aaec8049..019e86ac5 100644
--- a/examples/spectrum/app/waveform.h
+++ b/examples/spectrum/app/waveform.h
@@ -41,12 +41,10 @@
#ifndef WAVEFORM_H
#define WAVEFORM_H
-#include <QWidget>
-#include <QtMultimedia/QAudioFormat>
+#include <QAudioFormat>
#include <QPixmap>
#include <QScopedPointer>
-
-QT_FORWARD_DECLARE_CLASS(QByteArray)
+#include <QWidget>
/**
* Widget which displays a section of the audio waveform.
@@ -57,10 +55,12 @@ QT_FORWARD_DECLARE_CLASS(QByteArray)
* outside the widget, it is moved to the right end of the tile array and
* painted with the next section of the waveform.
*/
-class Waveform : public QWidget {
+class Waveform : public QWidget
+{
Q_OBJECT
+
public:
- Waveform(QWidget *parent = 0);
+ explicit Waveform(QWidget *parent = 0);
~Waveform();
// QWidget
@@ -197,7 +197,6 @@ private:
qint64 m_windowPosition;
qint64 m_windowLength;
-
};
#endif // WAVEFORM_H