From 9464c1c87601439a227c30bc76b3126523aca7ff Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 19 Jun 2014 14:21:25 +0400 Subject: [PATCH] =?utf8?q?0002187:=20select=20several=20surfaces=20in=20?= =?utf8?q?=E2=80=9CSetup=20surfaces=E2=80=9D=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/Plot2d/Plot2d_SetupCurvesDlg.cxx | 4 ++-- src/Plot3d/Plot3d_SetupSurfacesDlg.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Plot2d/Plot2d_SetupCurvesDlg.cxx b/src/Plot2d/Plot2d_SetupCurvesDlg.cxx index 711137416..e48d39d07 100755 --- a/src/Plot2d/Plot2d_SetupCurvesDlg.cxx +++ b/src/Plot2d/Plot2d_SetupCurvesDlg.cxx @@ -159,7 +159,7 @@ Plot2d_SetupCurvesDlg::Plot2d_SetupCurvesDlg( QWidget* theParent ) 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() ); @@ -437,7 +437,7 @@ void Plot2d_SetupCurvesDlg::onRemove( ) 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 ); } diff --git a/src/Plot3d/Plot3d_SetupSurfacesDlg.cxx b/src/Plot3d/Plot3d_SetupSurfacesDlg.cxx index 36c2ffb14..b4d820405 100644 --- a/src/Plot3d/Plot3d_SetupSurfacesDlg.cxx +++ b/src/Plot3d/Plot3d_SetupSurfacesDlg.cxx @@ -70,7 +70,7 @@ Plot3d_SetupSurfacesDlg::Plot3d_SetupSurfacesDlg( QWidget* theParent ) 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() ); @@ -212,7 +212,7 @@ void Plot3d_SetupSurfacesDlg::onRemove() 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 ); } -- 2.39.2