myXGridMinorEnabled( false ), myYGridMinorEnabled( false ), myY2GridMinorEnabled( false ),
myXGridMaxMajor( 8 ), myYGridMaxMajor( 8 ), myY2GridMaxMajor( 8 ),
myXGridMaxMinor( 5 ), myYGridMaxMinor( 5 ), myY2GridMaxMinor( 5 ),
- myXMode( 0 ), myYMode( 0 ), mySecondY( false )
+ myXMode( 0 ), myYMode( 0 ), mySecondY( false ), isDefTitle(true)
{
setObjectName( title );
/* Plot 2d View */
void Plot2d_ViewFrame::setTitle( const QString& title )
{
setTitle( myTitleEnabled, title, MainTitle, true );
+ isDefTitle = false;
}
/*!
setTitle( dlg->isY2TitleEnabled(), dlg->getY2Title(), Y2Title, false );
// main title
+ if( dlg->isMainTitleEnabled() && myTitle != dlg->getMainTitle()) isDefTitle = false;
setTitle( dlg->isMainTitleEnabled(), dlg->getMainTitle(), MainTitle, true );
// curve type
if ( myCurveType != dlg->getCurveType() ) {
setTitle( myYTitleEnabled, yTitle + yUnits, YTitle, true );
if ( mySecondY )
setTitle( myY2TitleEnabled, y2Title + y2Units, Y2Title, true );
- setTitle( true, aTables.join("; "), MainTitle, true );
+ if(isDefTitle) setTitle( true, aTables.join("; "), MainTitle, true );
}
/*!