setHorizontallyStretchable( true );
QWidget* aWidget = new QWidget( this );
+ aWidget->setFocusPolicy(StrongFocus);
setWidget( aWidget );
QGridLayout* aLayout = new QGridLayout( aWidget, 2, 13, 11, 6 );
mySlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
mySlider->setOrientation( QSlider::Horizontal );
mySlider->setTracking( false );
+ mySlider->setFocusPolicy(StrongFocus);
aLayout->addMultiCellWidget( mySlider, 0, 0, 1, 8 );
myLastTimeStamp = new QLabel( aWidget );
myTimeStampStrings = new QComboBox( aWidget );
myTimeStampStrings->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
+ myTimeStampStrings->setFocusPolicy(StrongFocus);
aLayout->addWidget( myTimeStampStrings, 1, 9 );
myTimeStampIndices = new QComboBox( aWidget );
myTimeStampIndices->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
+ myTimeStampIndices->setFocusPolicy(StrongFocus);
aLayout->addWidget( myTimeStampIndices, 1, 10 );
// Speed
mySpeedBox = new QSpinBox( 1, 100, 1, aWidget );
mySpeedBox->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
+ mySpeedBox->setFocusPolicy(StrongFocus);
mySpeedBox->setValue( 50 );
aLayout->addWidget( mySpeedBox, 1, 12 );
myLastTimeStamp->setText( aTimeStampsRange[aLength-1].myTime.in() );
myTimeStampsNumber->setText( QString("(") + QString::number( aLength ) + ")" );
+ int aPageStep = aLength / 10;
+ aPageStep = std::max(aPageStep, 1);
+ mySlider->setPageStep(aPageStep);
+
CORBA::Long a_current_index = 0;
for( CORBA::Long an_index = 0; an_index < aLength; an_index++ )
{