Author: dmacvicar Date: Mon Dec 3 00:37:30 2007 New Revision: 42583 URL: http://svn.opensuse.org/viewcvs/yast?rev=42583&view=rev Log: YQSlider Modified: branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.cc branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.h branches/tmp/coolo/qt4-port/src/YQSlider.cc Modified: branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.cc?rev=42583&r1=42582&r2=42583&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.cc (original) +++ branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.cc Mon Dec 3 00:37:30 2007 @@ -17,8 +17,7 @@ /-*/ -#include <qradiobutton.h> -#include <q3buttongroup.h> +#include <QRadioButton> #define y2log_component "qt-ui" #include <ycp/y2log.h> Modified: branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.h?rev=42583&r1=42582&r2=42583&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.h (original) +++ branches/tmp/coolo/qt4-port/src/YQRadioButtonGroup.h Mon Dec 3 00:37:30 2007 @@ -19,10 +19,9 @@ #ifndef YQRadioButtonGroup_h #define YQRadioButtonGroup_h -#include <qwidget.h> +#include <QWidget> #include "YRadioButtonGroup.h" -class Q3ButtonGroup; class YQRadioButtonGroup : public QWidget, public YRadioButtonGroup { Modified: branches/tmp/coolo/qt4-port/src/YQSlider.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/YQSlider.cc?rev=42583&r1=42582&r2=42583&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/YQSlider.cc (original) +++ branches/tmp/coolo/qt4-port/src/YQSlider.cc Mon Dec 3 00:37:30 2007 @@ -16,10 +16,9 @@ /-*/ -#define QT3_SUPPORT -#include <qslider.h> -#include <qspinbox.h> -#include <qlabel.h> +#include <QSlider> +#include <QSpinBox> +#include <QLabel> #include <QVBoxLayout> #define y2log_component "qt-ui" @@ -67,9 +66,10 @@ if ( reverseLayout ) { - _qt_spinBox = new QSpinBox( minValue, maxValue, - 1, // step - _hbox ); + _qt_spinBox = new QSpinBox( _hbox ); + _qt_spinBox->setMinimum(minValue); + _qt_spinBox->setMaximum(maxValue); + _qt_spinBox->setSingleStep(1); layout->addWidget( _qt_spinBox ); } else @@ -77,18 +77,20 @@ _caption->setAlignment( Qt::AlignRight ); } - _qt_slider = new QSlider( minValue, maxValue, - 1, // pageStep - initialValue, - Qt::Horizontal, _hbox ); + _qt_slider = new QSlider( Qt::Horizontal, _hbox ); + _qt_slider->setMinimum(minValue); + _qt_slider->setMaximum(maxValue); + _qt_slider->setPageStep(1); YUI_CHECK_NEW( _qt_slider ); layout->addWidget( _qt_slider ); if ( ! reverseLayout ) { - _qt_spinBox = new QSpinBox( minValue, maxValue, - 1, // step - _hbox ); + _qt_spinBox = new QSpinBox( _hbox ); + _qt_spinBox->setMinimum(minValue); + _qt_spinBox->setMaximum(maxValue); + _qt_spinBox->setSingleStep(1); + layout->addWidget( _qt_spinBox ); } YUI_CHECK_NEW( _qt_spinBox ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org