+
+/**************************************************************************
+ * Integer-based controls
+ *************************************************************************/
+
+/*********** Integer **************/
+IntegerConfigControl::IntegerConfigControl( vlc_object_t *_p_this,
+ module_config_t *_p_item,
+ QWidget *_parent ) :
+ VIntConfigControl( _p_this, _p_item, _parent )
+{
+ QLabel *label = new QLabel( qfu(p_item->psz_text) );
+ spin = new QSpinBox;
+ finish( label );
+
+ QHBoxLayout *layout = new QHBoxLayout();
+ layout->addWidget( label, 0 ); layout->addWidget( spin, 1 );
+ widget->setLayout( layout );
+}
+IntegerConfigControl::IntegerConfigControl( vlc_object_t *_p_this,
+ module_config_t *_p_item,
+ QLabel *label, QSpinBox *_spin ) :
+ VIntConfigControl( _p_this, _p_item )
+{
+ spin = _spin;
+ finish(label);
+}
+
+void IntegerConfigControl::finish( QLabel *label )
+{
+ spin->setValue( p_item->i_value );
+ spin->setToolTip( qfu(p_item->psz_longtext) );
+ label->setToolTip( qfu(p_item->psz_longtext) );
+}
+
+int IntegerConfigControl::getValue()
+{
+ return spin->value();
+}