Commit 9c14e587 authored by Paul Tvete's avatar Paul Tvete

QScrollBar API has changed

parent 884b4792
......@@ -27,11 +27,11 @@ void LCDRange::init()
{
lcd = new QLCDNumber( 2, this );
lcd->move( 0, 0 );
sBar = new QScrollBar( 0, 99, // range
1, 10, // line/page steps
0, // inital value
QScrollBar::Horizontal, // orientation
this );
sBar = new QScrollBar( Qt::Horizontal, this);
sBar->setRange(0,99);
sBar->setSingleStep(1);
sBar->setPageStep(10);
sBar->setValue(0);
label = new QLabel( this );
label->setAlignment( Qt::AlignCenter );
connect( sBar, SIGNAL(valueChanged(int)), lcd, SLOT(display(int)) );
......
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