//#include "CurveCreator_NewPointDlg.h"
#include "CurveCreator_NewSectionDlg.h"
#include "CurveCreator_Utils.h"
+#include "CurveCreator_TableView.h"
#include <SUIT_Session.h>
#include <SUIT_Desktop.h>
connect( mySectionView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(onContextMenu(QPoint)) );
myLocalPointView = new QTableWidget();
+ myLocalPointView->setItemDelegate( new CurveCreator_TableItemDelegate( myLocalPointView ) );
myLocalPointView->setVisible( false );
myLocalPointView->setColumnCount( 4 );
myLocalPointView->setColumnWidth( 0, SECTION_NAME_COLUMN_WIDTH );
SectionToPointList aSelPoints;
startCurveModification( aSelPoints );
- double aX = myLocalPointView->item( theRow, 2 )->text().toDouble();
- double anY = myLocalPointView->item( theRow, 3 )->text().toDouble();
+ double aX = myLocalPointView->item( theRow, 2 )->data( Qt::UserRole ).toDouble();
+ double anY = myLocalPointView->item( theRow, 3 )->data( Qt::UserRole ).toDouble();
std::deque<float> aChangedPos;
aChangedPos.push_back( aX );
aChangedPos.push_back( anY );