summaryrefslogtreecommitdiff
path: root/examples/multimedia/audioinput/audioinput.h
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 16:47:42 +0000
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 17:57:49 +0000
commitfb829969ce3f406fcb927d8d31a84c5fb8f56d59 (patch)
tree65894fdbac104f240cd730863a20055472ff24bc /examples/multimedia/audioinput/audioinput.h
parent479e26ab077a9d43e37b0706db4f5cb61964b327 (diff)
downloadqt4-tools-fb829969ce3f406fcb927d8d31a84c5fb8f56d59.tar.gz
Changed variable names in audio input example to match Qt code style
Also changed some names to better convey their meanings, e.g. button -> m_modeButton button2 -> m_suspendResumeButton Reviewed-by: trustme
Diffstat (limited to 'examples/multimedia/audioinput/audioinput.h')
-rw-r--r--examples/multimedia/audioinput/audioinput.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/examples/multimedia/audioinput/audioinput.h b/examples/multimedia/audioinput/audioinput.h
index 33b9ac6423..b189e84610 100644
--- a/examples/multimedia/audioinput/audioinput.h
+++ b/examples/multimedia/audioinput/audioinput.h
@@ -86,8 +86,8 @@ protected:
void paintEvent(QPaintEvent *event);
private:
- qreal level;
- QPixmap pixmap;
+ qreal m_level;
+ QPixmap m_pixmap;
};
class InputTest : public QMainWindow
@@ -103,23 +103,23 @@ private slots:
void readMore();
void toggleMode();
void toggleSuspend();
- void state(QAudio::State s);
- void deviceChanged(int idx);
+ void state(QAudio::State state);
+ void deviceChanged(int index);
private:
- AudioInfo *audioinfo;
- QAudioDeviceInfo device;
- QAudioFormat format;
- QAudioInput *audioInput;
- QIODevice *input;
- RenderArea *canvas;
+ AudioInfo *m_audioInfo;
+ QAudioDeviceInfo m_device;
+ QAudioFormat m_format;
+ QAudioInput *m_audioInput;
+ QIODevice *m_input;
+ RenderArea *m_canvas;
- bool pullMode;
+ bool m_pullMode;
- QPushButton *button;
- QPushButton *button2;
- QComboBox *deviceBox;
+ QPushButton *m_modeButton;
+ QPushButton *m_suspendResumeButton;
+ QComboBox *m_deviceBox;
- char *buffer;
+ char *m_buffer;
};