From 6576b0b21a58a87207a5b7e72887659de3bd3fd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Fri, 1 Feb 2008 18:19:19 +0000 Subject: [PATCH] Compilation fix for Qt4.2 --- .../gui/qt4/components/simple_preferences.cpp | 4 ++ modules/gui/qt4/ui/sprefs_audio.ui | 51 ------------------- 2 files changed, 4 insertions(+), 51 deletions(-) diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index d3aff09c2e..533fc8bb32 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -261,6 +261,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, optionWidgets.append( ui.fileControl ); optionWidgets.append( ui.outputModule ); optionWidgets.append( ui.volNormBox ); + /*Little mofification of ui.volumeValue to compile with Qt < 4.3 */ +#ifdef QT43 + ui.volumeValue->setButtonSymbols(QAbstractSpinBox::NoButtons); +#endif optionWidgets.append( ui.volumeValue ); updateAudioOptions( ui.outputModule->currentIndex() ); diff --git a/modules/gui/qt4/ui/sprefs_audio.ui b/modules/gui/qt4/ui/sprefs_audio.ui index fa36853a19..6f890ebef5 100644 --- a/modules/gui/qt4/ui/sprefs_audio.ui +++ b/modules/gui/qt4/ui/sprefs_audio.ui @@ -79,9 +79,6 @@ true - - QAbstractSpinBox::NoButtons - % @@ -168,18 +165,6 @@ - - 0 - - - 0 - - - 0 - - - 0 - @@ -209,18 +194,6 @@ - - 0 - - - 0 - - - 0 - - - 0 - @@ -256,18 +229,6 @@ - - 0 - - - 0 - - - 0 - - - 0 - @@ -297,18 +258,6 @@ - - 0 - - - 0 - - - 0 - - - 0 - -- 2.39.5