[vlc-commits] Qt4: rename modulation box to QAM box, and try to fix build
Rémi Denis-Courmont
git at videolan.org
Sat Mar 26 19:07:43 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 26 20:07:02 2011 +0200| [a67e449b6db002f7a53f73ded8e019a12ac763bb] | committer: Rémi Denis-Courmont
Qt4: rename modulation box to QAM box, and try to fix build
(we might need a PSK box later)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a67e449b6db002f7a53f73ded8e019a12ac763bb
---
modules/gui/qt4/components/open_panels.cpp | 26 +++++++++++++-------------
modules/gui/qt4/components/open_panels.hpp | 3 ++-
2 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index b1d7046..1dff228 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -984,17 +984,17 @@ void CaptureOpenPanel::initialize()
dvbModLabel = new QLabel( qtr( "Modulation / Constellation" ) );
dvbPropLayout->addWidget( dvbModLabel, 2, 0 );
- dvbModBox = new QComboBox;
- dvbModBox->addItem( qtr( "Automatic" ), 0 );
- dvbModBox->addItem( "256-QAM", 256 );
- dvbModBox->addItem( "128-QAM", 128 );
- dvbModBox->addItem( "64-QAM", 64 );
- dvbModBox->addItem( "32-QAM", 32 );
- dvbModBox->addItem( "16-QAM", 16 );
- dvbPropLayout->addWidget( dvbModBox, 2, 1 );
+ dvbQamBox = new QComboBox;
+ dvbQamBox->addItem( qtr( "Automatic" ), 0 );
+ dvbQamBox->addItem( "256-QAM", 256 );
+ dvbQamBox->addItem( "128-QAM", 128 );
+ dvbQamBox->addItem( "64-QAM", 64 );
+ dvbQamBox->addItem( "32-QAM", 32 );
+ dvbQamBox->addItem( "16-QAM", 16 );
+ dvbPropLayout->addWidget( dvbQamBox, 2, 1 );
dvbModLabel->hide();
- dvbModBox->hide();
+ dvbQamBox->hide();
dvbBandLabel = new QLabel( qtr( "Bandwidth" ) );
dvbPropLayout->addWidget( dvbBandLabel, 2, 0 );
@@ -1013,7 +1013,7 @@ void CaptureOpenPanel::initialize()
CuMRL( dvbCard, valueChanged ( int ) );
CuMRL( dvbFreq, valueChanged ( int ) );
CuMRL( dvbSrate, valueChanged ( int ) );
- CuMRL( dvbModBox, currentIndexChanged ( int ) );
+ CuMRL( dvbQamBox, currentIndexChanged ( int ) );
CuMRL( dvbBandBox, currentIndexChanged ( int ) );
BUTTONACT( dvbs, updateButtons() );
@@ -1141,7 +1141,7 @@ void CaptureOpenPanel::updateMRL()
if( dvbc->isChecked() || cqam->isChecked() )
{
unsigned qam =
- dvbModBox->itemData( dvbModBox->currentIndex() ).toInt();
+ dvbQamBox->itemData( dvbQamBox->currentIndex() ).toInt();
if( qam != 0 )
mrl += ":modulation=" + QString::number( qam ) + "QAM";
mrl += ":srate=" + QString::number( dvbSrate->value() );
@@ -1187,7 +1187,7 @@ void CaptureOpenPanel::updateButtons()
case DTV_DEVICE:
dvbSrate->hide();
dvbSrateLabel->hide();
- dvbModBox->hide();
+ dvbQamBox->hide();
dvbModLabel->hide();
dvbBandBox->hide();
dvbBandLabel->hide();
@@ -1196,7 +1196,7 @@ void CaptureOpenPanel::updateButtons()
{
dvbSrate->show();
dvbSrateLabel->show();
- dvbModBox->show();
+ dvbQamBox->show();
dvbModLabel->show();
}
else if( dvbs->isChecked() )
diff --git a/modules/gui/qt4/components/open_panels.hpp b/modules/gui/qt4/components/open_panels.hpp
index c7f8ae7..54a2397 100644
--- a/modules/gui/qt4/components/open_panels.hpp
+++ b/modules/gui/qt4/components/open_panels.hpp
@@ -207,7 +207,7 @@ private:
QSpinBox *pvrFreq, *pvrBitr;
QComboBox *v4l2VideoDevice, *v4l2AudioDevice;
QLineEdit *pvrDevice, *pvrRadioDevice;
- QComboBox *v4l2StdBox, *pvrNormBox, *dvbModBox, *dvbBandBox;
+ QComboBox *v4l2StdBox, *pvrNormBox;
QSpinBox *jackChannels, *jackCaching;
QCheckBox *jackPace, *jackConnect;
QLineEdit *jackPortsSelected;
@@ -215,6 +215,7 @@ private:
#endif
QRadioButton *dvbs, *dvbt, *dvbc, *atsc, *cqam;
QLabel *dvbBandLabel, *dvbSrateLabel, *dvbModLabel;
+ QComboBox *dvbQamBox, *dvbBandBox;
QSpinBox *dvbCard, *dvbFreq, *dvbSrate;
QDoubleSpinBox *screenFPS;
More information about the vlc-commits
mailing list