Commit 8bc57b36 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Open Dialog: Capture: small fixes.

parent 6808bf9c
...@@ -507,6 +507,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -507,6 +507,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
v4lFreq = new QSpinBox; v4lFreq = new QSpinBox;
v4lFreq->setAlignment( Qt::AlignRight ); v4lFreq->setAlignment( Qt::AlignRight );
v4lFreq->setSuffix(" kHz"); v4lFreq->setSuffix(" kHz");
setSpinBoxFreq( v4lFreq );
v4lPropLayout->addWidget( v4lFreq, 1 , 1 ); v4lPropLayout->addWidget( v4lFreq, 1 , 1 );
/* v4l CONNECTs */ /* v4l CONNECTs */
...@@ -547,7 +548,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -547,7 +548,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
pvrFreq = new QSpinBox; pvrFreq = new QSpinBox;
pvrFreq->setAlignment( Qt::AlignRight ); pvrFreq->setAlignment( Qt::AlignRight );
pvrFreq->setSuffix(" kHz"); pvrFreq->setSuffix(" kHz");
setMaxBound( pvrFreq ); setSpinBoxFreq( pvrFreq );
pvrPropLayout->addWidget( pvrFreq, 1, 1 ); pvrPropLayout->addWidget( pvrFreq, 1, 1 );
QLabel *pvrBitrLabel = new QLabel( qtr( "Bitrate" ) ); QLabel *pvrBitrLabel = new QLabel( qtr( "Bitrate" ) );
...@@ -556,7 +557,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -556,7 +557,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
pvrBitr = new QSpinBox; pvrBitr = new QSpinBox;
pvrBitr->setAlignment( Qt::AlignRight ); pvrBitr->setAlignment( Qt::AlignRight );
pvrBitr->setSuffix(" kHz"); pvrBitr->setSuffix(" kHz");
setMaxBound( pvrBitr ); setSpinBoxFreq( pvrBitr );
pvrPropLayout->addWidget( pvrBitr, 2, 1 ); pvrPropLayout->addWidget( pvrBitr, 2, 1 );
/* PVR CONNECTs */ /* PVR CONNECTs */
...@@ -638,8 +639,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -638,8 +639,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
bdaFreq->setAlignment( Qt::AlignRight ); bdaFreq->setAlignment( Qt::AlignRight );
bdaFreq->setSuffix(" kHz"); bdaFreq->setSuffix(" kHz");
bdaFreq->setSingleStep( 1000 ); bdaFreq->setSingleStep( 1000 );
bdaFreq->setAccelerated( true ); setSpinBoxFreq( bdaFreq )
setMaxBound( bdaFreq )
bdaPropLayout->addWidget( bdaFreq, 0, 1 ); bdaPropLayout->addWidget( bdaFreq, 0, 1 );
bdaSrateLabel = new QLabel( qtr( "Transponder symbol rate" ) ); bdaSrateLabel = new QLabel( qtr( "Transponder symbol rate" ) );
...@@ -648,7 +648,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -648,7 +648,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
bdaSrate = new QSpinBox; bdaSrate = new QSpinBox;
bdaSrate->setAlignment( Qt::AlignRight ); bdaSrate->setAlignment( Qt::AlignRight );
bdaSrate->setSuffix(" kHz"); bdaSrate->setSuffix(" kHz");
setMaxBound( bdaSrate ); setSpinBoxFreq( bdaSrate );
bdaPropLayout->addWidget( bdaSrate, 1, 1 ); bdaPropLayout->addWidget( bdaSrate, 1, 1 );
bdaBandLabel = new QLabel( qtr( "Bandwidth" ) ); bdaBandLabel = new QLabel( qtr( "Bandwidth" ) );
...@@ -706,7 +706,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -706,7 +706,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
dvbFreq = new QSpinBox; dvbFreq = new QSpinBox;
dvbFreq->setAlignment( Qt::AlignRight ); dvbFreq->setAlignment( Qt::AlignRight );
dvbFreq->setSuffix(" kHz"); dvbFreq->setSuffix(" kHz");
setMaxBound( dvbFreq ); setSpinBoxFreq( dvbFreq );
dvbPropLayout->addWidget( dvbFreq, 0, 1 ); dvbPropLayout->addWidget( dvbFreq, 0, 1 );
QLabel *dvbSrateLabel = new QLabel( qtr( "Transponder symbol rate" ) ); QLabel *dvbSrateLabel = new QLabel( qtr( "Transponder symbol rate" ) );
...@@ -715,7 +715,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -715,7 +715,7 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
dvbSrate = new QSpinBox; dvbSrate = new QSpinBox;
dvbSrate->setAlignment( Qt::AlignRight ); dvbSrate->setAlignment( Qt::AlignRight );
dvbSrate->setSuffix(" kHz"); dvbSrate->setSuffix(" kHz");
setMaxBound( dvbSrate ); setSpinBoxFreq( dvbSrate );
dvbPropLayout->addWidget( dvbSrate, 1, 1 ); dvbPropLayout->addWidget( dvbSrate, 1, 1 );
/* DVB CONNECTs */ /* DVB CONNECTs */
......
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
# include <limits.h> # include <limits.h>
#endif #endif
#define setMaxBound( spinbox ) spinbox->setRange ( 0, INT_MAX ); #define setSpinBoxFreq( spinbox ){ spinbox->setRange ( 0, INT_MAX ); \
spinbox->setAccelerated( true ); }
#define V4L_DEVICE 0x0 #define V4L_DEVICE 0x0
#define PVR_DEVICE 0x1 #define PVR_DEVICE 0x1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment