summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2010-05-27 15:01:29 +0200
committerThomas Zander <t.zander@nokia.com>2010-05-27 15:01:29 +0200
commit016b89d07478c91617ad345a0b3d7f16d0f8cd21 (patch)
treeb56f2a81e112d08cc6d629ea2e6e1e4259b56f35 /demos
parent4459b4b29073bb82fe480b5eac1a4d9241068b38 (diff)
parent103e1e8ea5e8879f2bb97e008840a212b3004a51 (diff)
Merge commit 'origin/4.7' into symbian47
Conflicts: src/plugins/bearer/symbian/qnetworksession_impl.h
Diffstat (limited to 'demos')
-rw-r--r--demos/deform/main.cpp5
-rw-r--r--demos/embedded/desktopservices/desktopservices.pro4
-rw-r--r--demos/pathstroke/main.cpp5
-rw-r--r--demos/spectrum/app/engine.h5
-rw-r--r--demos/spectrum/app/mainwidget.h3
-rw-r--r--demos/spectrum/app/settingsdialog.h2
-rw-r--r--demos/spectrum/app/spectrograph.h2
-rw-r--r--demos/spectrum/app/spectrumanalyser.h3
-rw-r--r--demos/spectrum/app/tonegenerator.h2
-rw-r--r--demos/spectrum/app/tonegeneratordialog.h2
-rw-r--r--demos/spectrum/app/utils.h2
-rw-r--r--demos/spectrum/app/waveform.h2
12 files changed, 26 insertions, 11 deletions
diff --git a/demos/deform/main.cpp b/demos/deform/main.cpp
index 4539973f6e..bef075a502 100644
--- a/demos/deform/main.cpp
+++ b/demos/deform/main.cpp
@@ -50,10 +50,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv);
- bool smallScreen = false;
- for (int i=0; i<argc; i++)
- if (QString(argv[i]) == "-small-screen")
- smallScreen = true;
+ bool smallScreen = QApplication::arguments().contains("-small-screen");
PathDeformWidget deformWidget(0, smallScreen);
diff --git a/demos/embedded/desktopservices/desktopservices.pro b/demos/embedded/desktopservices/desktopservices.pro
index bff7c468a1..94ddedd62d 100644
--- a/demos/embedded/desktopservices/desktopservices.pro
+++ b/demos/embedded/desktopservices/desktopservices.pro
@@ -24,8 +24,8 @@ symbian {
}
wince*{
- music.path = "\My Documents\My Music"
- image.path = "\My Documents\My Pictures"
+ music.path = "\\My Documents\\My Music"
+ image.path = "\\My Documents\\My Pictures"
DEPLOYMENT += music image
}
diff --git a/demos/pathstroke/main.cpp b/demos/pathstroke/main.cpp
index 1465682567..534b233f99 100644
--- a/demos/pathstroke/main.cpp
+++ b/demos/pathstroke/main.cpp
@@ -48,10 +48,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv);
- bool smallScreen = false;
- for (int i=0; i<argc; i++)
- if (QString(argv[i]) == "-small-screen")
- smallScreen = true;
+ bool smallScreen = QApplication::arguments().contains("-small-screen");
PathStrokeWidget pathStrokeWidget(smallScreen);
QStyle *arthurStyle = new ArthurStyle();
diff --git a/demos/spectrum/app/engine.h b/demos/spectrum/app/engine.h
index 16088b2e80..93733feaaa 100644
--- a/demos/spectrum/app/engine.h
+++ b/demos/spectrum/app/engine.h
@@ -61,10 +61,13 @@
#include <QDir>
#endif
+QT_BEGIN_NAMESPACE
class QAudioInput;
class QAudioOutput;
-class FrequencySpectrum;
class QFile;
+QT_END_NAMESPACE
+
+class FrequencySpectrum;
/**
* This class interfaces with the QtMultimedia audio classes, and also with
diff --git a/demos/spectrum/app/mainwidget.h b/demos/spectrum/app/mainwidget.h
index 846b97ac5b..c59dbd63fd 100644
--- a/demos/spectrum/app/mainwidget.h
+++ b/demos/spectrum/app/mainwidget.h
@@ -50,11 +50,14 @@ class Waveform;
class LevelMeter;
class SettingsDialog;
class ToneGeneratorDialog;
+
+QT_BEGIN_NAMESPACE
class QAudioFormat;
class QLabel;
class QPushButton;
class QMenu;
class QAction;
+QT_END_NAMESPACE
/**
* Main application widget, responsible for connecting the various UI
diff --git a/demos/spectrum/app/settingsdialog.h b/demos/spectrum/app/settingsdialog.h
index 7215a50e03..fda518b7a7 100644
--- a/demos/spectrum/app/settingsdialog.h
+++ b/demos/spectrum/app/settingsdialog.h
@@ -42,11 +42,13 @@
#include <QDialog>
#include <QtMultimedia/QAudioDeviceInfo>
+QT_BEGIN_NAMESPACE
class QComboBox;
class QCheckBox;
class QSlider;
class QSpinBox;
class QGridLayout;
+QT_END_NAMESPACE
/**
* Dialog used to control settings such as the audio input / output device
diff --git a/demos/spectrum/app/spectrograph.h b/demos/spectrum/app/spectrograph.h
index 6bfef3304a..a7790ffe8a 100644
--- a/demos/spectrum/app/spectrograph.h
+++ b/demos/spectrum/app/spectrograph.h
@@ -41,7 +41,9 @@
#include <QWidget>
#include "frequencyspectrum.h"
+QT_BEGIN_NAMESPACE
class QMouseEvent;
+QT_END_NAMESPACE
/**
* Widget which displays a spectrograph showing the frequency spectrum
diff --git a/demos/spectrum/app/spectrumanalyser.h b/demos/spectrum/app/spectrumanalyser.h
index caeb1c1e95..f10da636d6 100644
--- a/demos/spectrum/app/spectrumanalyser.h
+++ b/demos/spectrum/app/spectrumanalyser.h
@@ -55,8 +55,11 @@
#include "FFTRealFixLenParam.h"
#endif
+QT_BEGIN_NAMESPACE
class QAudioFormat;
class QThread;
+QT_END_NAMESPACE
+
class FFTRealWrapper;
class SpectrumAnalyserThreadPrivate;
diff --git a/demos/spectrum/app/tonegenerator.h b/demos/spectrum/app/tonegenerator.h
index 419f7e413b..d387768748 100644
--- a/demos/spectrum/app/tonegenerator.h
+++ b/demos/spectrum/app/tonegenerator.h
@@ -41,8 +41,10 @@
#include <QtCore/qglobal.h>
#include "spectrum.h"
+QT_BEGIN_NAMESPACE
class QAudioFormat;
class QByteArray;
+QT_END_NAMESPACE
/**
* Generate a sine wave
diff --git a/demos/spectrum/app/tonegeneratordialog.h b/demos/spectrum/app/tonegeneratordialog.h
index 35d69c2350..d6fcffa55b 100644
--- a/demos/spectrum/app/tonegeneratordialog.h
+++ b/demos/spectrum/app/tonegeneratordialog.h
@@ -42,10 +42,12 @@
#include <QDialog>
#include <QtMultimedia/QAudioDeviceInfo>
+QT_BEGIN_NAMESPACE
class QCheckBox;
class QSlider;
class QSpinBox;
class QGridLayout;
+QT_END_NAMESPACE
/**
* Dialog which controls the parameters of the tone generator.
diff --git a/demos/spectrum/app/utils.h b/demos/spectrum/app/utils.h
index 83467cd16c..548f8845e4 100644
--- a/demos/spectrum/app/utils.h
+++ b/demos/spectrum/app/utils.h
@@ -41,7 +41,9 @@
#include <QtCore/qglobal.h>
#include <QDebug>
+QT_BEGIN_NAMESPACE
class QAudioFormat;
+QT_END_NAMESPACE
//-----------------------------------------------------------------------------
// Miscellaneous utility functions
diff --git a/demos/spectrum/app/waveform.h b/demos/spectrum/app/waveform.h
index 4de527f1d3..909e5ee9b7 100644
--- a/demos/spectrum/app/waveform.h
+++ b/demos/spectrum/app/waveform.h
@@ -43,7 +43,9 @@
#include <QPixmap>
#include <QScopedPointer>
+QT_BEGIN_NAMESPACE
class QByteArray;
+QT_END_NAMESPACE
/**
* Widget which displays a section of the audio waveform.