frameLayout->addWidget( item->myVBtn, row, 1 );
frameLayout->addWidget( item->myTitleLab, row, 3 );
if ( rowTitles.size() > 0 )
- item->myTitleLab->setText( QString( rowTitles[ i ] ) );
+ item->myTitleLab->setText( QString( rowTitles[ i ].c_str() ) );
frameLayout->addWidget( item->myUnitLab, row, 5 );
if ( rowUnits.size() > 0 )
- item->myUnitLab->setText( QString( rowUnits[ i ] ) );
+ item->myUnitLab->setText( QString( rowUnits[ i ].c_str() ) );
frameLayout->addWidget( item->myAutoCheck, row, 7 );
frameLayout->addWidget( item->myLineCombo, row, 8 );
frameLayout->addWidget( item->myLineSpin, row, 9 );
frameLayout->addWidget( item->myVBtn, row, 1 );
frameLayout->addWidget( item->myTitleLab, row, 3 );
if ( rowTitles.size() > 0 )
- item->myTitleLab->setText( QString( rowTitles[ i ] ) );
+ item->myTitleLab->setText( QString( rowTitles[ i ].c_str() ) );
frameLayout->addWidget( item->myUnitLab, row, 5 );
if ( rowUnits.size() > 0 )
- item->myUnitLab->setText( QString( rowUnits[ i ] ) );
+ item->myUnitLab->setText( QString( rowUnits[ i ].c_str() ) );
frameLayout->addWidget( item->myAutoCheck, row, 7 );
frameLayout->addWidget( item->myLineCombo, row, 8 );
frameLayout->addWidget( item->myLineSpin, row, 9 );
{
/* collecting horizontal and vertical axis items */
horIndex = -1;
- int i, j;
+ int i;
for ( i = 0; i < myItems.count(); i++ ) {
if ( myItems.at( i )->isHorizontalOn() ) {
horIndex = i;
SPlot2d_Curve* curve = new SPlot2d_Curve();
// curve titles
if ( rowTitles.size() > 0 ) {
- curve->setHorTitle( QString( rowTitles[ horIndex ] ) );
- curve->setVerTitle( QString( rowTitles[ verIndex[i] ] ) );
+ curve->setHorTitle( QString( rowTitles[ horIndex ].c_str() ) );
+ curve->setVerTitle( QString( rowTitles[ verIndex[i] ].c_str() ) );
}
// curve units
if ( rowUnits.size() > 0 ) {
- curve->setHorUnits( QString( rowUnits[ horIndex ] ) );
- curve->setVerUnits( QString( rowUnits[ verIndex[i] ] ) );
+ curve->setHorUnits( QString( rowUnits[ horIndex ].c_str() ) );
+ curve->setVerUnits( QString( rowUnits[ verIndex[i] ].c_str() ) );
}
// curve data
int nbPoints = 0;
SPlot2d_Curve* curve = new SPlot2d_Curve();
// curve titles
if ( rowTitles.size() > 0 ) {
- curve->setHorTitle( QString( rowTitles[ horIndex ] ) );
- curve->setVerTitle( QString( rowTitles[ verIndex[i] ] ) );
+ curve->setHorTitle( QString( rowTitles[ horIndex ].c_str() ) );
+ curve->setVerTitle( QString( rowTitles[ verIndex[i] ].c_str() ) );
}
// curve units
if ( rowUnits.size() > 0 ) {
- curve->setHorUnits( QString( rowUnits[ horIndex ] ) );
- curve->setVerUnits( QString( rowUnits[ verIndex[i] ] ) );
+ curve->setHorUnits( QString( rowUnits[ horIndex ].c_str() ) );
+ curve->setVerUnits( QString( rowUnits[ verIndex[i] ].c_str() ) );
}
// curve data
int nbPoints = 0;
break;
}
}
+#ifndef WNT
for ( int i = 0; i < myItems.count(); i++ ) {
+#else
+ for ( i = 0; i < myItems.count(); i++ ) {
+#endif
if ( myItems.at( i )->isVerticalOn() )
bVSet = true;
myItems.at( i )->enableWidgets( bHSet && myItems.at( i )->isVerticalOn() );
void SPlot2d_ItemContainer::createWidgets( QWidget* parentWidget )
{
myHBtn = new QToolButton( parentWidget );
- myHBtn->setText( tr( " H " ) );
+ myHBtn->setText( tr( "H" ) );
myHBtn->setToggleButton( true );
myHBtn->setOn( false );
myVBtn = new QToolButton( parentWidget );
- myVBtn->setText( tr( " V " ) );
+ myVBtn->setText( tr( "V" ) );
myVBtn->setToggleButton( true );
myVBtn->setOn( false );