aLabels.append( tr( "NB_MARKERS" ) );
myTable->setHorizontalHeaderLabels( aLabels );
myTable->verticalHeader()->hide();
- myTable->setSelectionMode( QTableWidget::NoSelection );
+ myTable->setSelectionMode( QTableWidget::ExtendedSelection );
QComboBox* aCombo = new QComboBox( 0 );
myTable->verticalHeader()->setDefaultSectionSize( aCombo->sizeHint().height() );
for ( selIter = aRegs.begin(); selIter != aRegs.end(); ++selIter )
{
const QTableWidgetSelectionRange& aReg = *selIter;
- for ( int i = aReg.topRow(), n = aReg.bottomRow(); i < n; i++ )
+ for ( int i = aReg.topRow(), n = aReg.bottomRow(); i <= n; i++ )
aSelRows.insert( i );
}
aLabels.append( tr( "COLOR_SCALE" ) );
myTable->setHorizontalHeaderLabels( aLabels );
myTable->verticalHeader()->hide();
- myTable->setSelectionMode( QTableWidget::NoSelection );
+ myTable->setSelectionMode( QTableWidget::ExtendedSelection );
QComboBox* aCombo = new QComboBox( 0 );
myTable->verticalHeader()->setDefaultSectionSize( aCombo->sizeHint().height() );
for ( selIter = aRegs.begin(); selIter != aRegs.end(); ++selIter )
{
const QTableWidgetSelectionRange& aReg = *selIter;
- for ( int i = aReg.topRow(), n = aReg.bottomRow(); i < n; i++ )
+ for ( int i = aReg.topRow(), n = aReg.bottomRow(); i <= n; i++ )
aSelRows.insert( i );
}