refs #1373 comment out the limit of selected points in the local-point-list

This commit is contained in:
isn 2017-11-08 15:12:27 +03:00
parent ed9a2d484b
commit 190ad709e4
2 changed files with 10 additions and 12 deletions

View File

@ -80,11 +80,10 @@ CurveCreator_Widget::CurveCreator_Widget(QWidget* parent,
CurveCreator_ICurve *theCurve,
const int theActionFlags,
const QStringList& theCoordTitles,
Qt::WindowFlags fl,
int theLocalPointRowLimit )
Qt::WindowFlags fl )
: QWidget(parent), myNewSectionEditor(NULL), myCurve(theCurve), mySection(0),
myDragStarted( false ), myDragInteractionStyle( SUIT_ViewModel::STANDARD ),
myOCCViewer( 0 ), myLocalPointRowLimit( theLocalPointRowLimit ),
myOCCViewer( 0 ),
myOld2DMode(OCCViewer_ViewWindow::No2dMode)
{
bool isToEnableClosed = !( theActionFlags & DisableClosedSection );
@ -1460,16 +1459,16 @@ void CurveCreator_Widget::updateLocalPointView()
CurveCreator_Utils::getSelectedPoints( aContext, myCurve, myLocalPoints );
int aNbPoints = myLocalPoints.size();
bool isRowLimit = aNbPoints > myLocalPointRowLimit;
myLocalPointView->setVisible( getActionMode() == ModificationMode && !isRowLimit );
//bool isRowLimit = aNbPoints > myLocalPointRowLimit;
myLocalPointView->setVisible( getActionMode() == ModificationMode/* && !isRowLimit */);
if ( !isRowLimit ) {
bool isBlocked = myLocalPointView->blockSignals(true);
//if ( !isRowLimit ) {
bool isBlocked = myLocalPointView->blockSignals(true);
myLocalPointView->setLocalPointsToTable( myLocalPoints );
myLocalPointView->setLocalPointsToTable( myLocalPoints );
myLocalPointView->blockSignals( isBlocked );
}
myLocalPointView->blockSignals( isBlocked );
//}
}
/**

View File

@ -71,8 +71,7 @@ public:
CurveCreator_ICurve *theCurve,
const int theActionFlags = NoFlags,
const QStringList& theCoordTitles = QStringList(),
Qt::WindowFlags fl=0,
int theLocalPointRowLimit = 20);
Qt::WindowFlags fl=0);
// OCC viewer manipulation
void setOCCViewer( OCCViewer_Viewer* theViewer );