summaryrefslogtreecommitdiffstats
path: root/tools/qtconfig/mainwindow.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-02-23 23:15:25 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-02-23 23:22:23 (GMT)
commitbdd232ad066c9b1c5e2ba85a4b14e410f82b77e5 (patch)
tree7d5d178b5630e0c355633f7afb8e9b06dfafd0c8 /tools/qtconfig/mainwindow.cpp
parent0f20bdc28458b147cb177b1d45dc06a75ab3b7b9 (diff)
downloadQt-bdd232ad066c9b1c5e2ba85a4b14e410f82b77e5.zip
Qt-bdd232ad066c9b1c5e2ba85a4b14e410f82b77e5.tar.gz
Qt-bdd232ad066c9b1c5e2ba85a4b14e410f82b77e5.tar.bz2
Separate Phonon and gstreamer defines in qtconfig
Reviewed-by: Justin McPherson
Diffstat (limited to 'tools/qtconfig/mainwindow.cpp')
-rw-r--r--tools/qtconfig/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/qtconfig/mainwindow.cpp b/tools/qtconfig/mainwindow.cpp
index 604b1f4..0de4b43 100644
--- a/tools/qtconfig/mainwindow.cpp
+++ b/tools/qtconfig/mainwindow.cpp
@@ -68,6 +68,8 @@
#ifndef QT_NO_GSTREAMER
#include <gst/gst.h>
+#endif
+#ifdef HAVE_PHONON
#include <phonon/phononnamespace.h>
#endif
@@ -387,8 +389,10 @@ MainWindow::MainWindow()
audiosinkCombo->addItem(tr("aRts"), QLatin1String("artssink"));
audiosinkCombo->setItemData(audiosinkCombo->findText(tr("aRts")),
tr("Experimental aRts support for GStreamer."), Qt::ToolTipRole);
-#ifndef QT_NO_GSTREAMER
+#ifdef HAVE_PHONON
phononVersionLabel->setText(QLatin1String(Phonon::phononVersion()));
+#endif
+#ifndef QT_NO_GSTREAMER
if (gst_init_check(0, 0, 0)) {
gchar *versionString = gst_version_string();
gstversionLabel->setText(QLatin1String(versionString));