- aBtnsLayout->addWidget( myApply, 0 );
- aBtnsLayout->addWidget( myCancel, 0 );
- aBtnsLayout->addStretch( 1 );
- aBtnsLayout->addWidget( myHelp, 0 );
-
- connect( myApply, SIGNAL( clicked() ), this, SLOT( OnApply() ) );
- connect( myCancel, SIGNAL( clicked() ), this, SLOT( OnCancel() ) );
- connect( myHelp, SIGNAL( clicked() ), this, SLOT( OnHelp() ) );
+ if ( doInitLayout ) {
+ myApplyAndClose = new QPushButton( tr( "APPLY_AND_CLOSE" ), myBtnFrame );
+ myApply = new QPushButton( tr( "APPLY" ), myBtnFrame );
+
+ aBtnsLayout->addWidget( myApplyAndClose, 0 );
+ aBtnsLayout->addWidget( myApply, 0 );
+ aBtnsLayout->addWidget( myCancel, 0 );
+ aBtnsLayout->addStretch( 1 );
+ aBtnsLayout->addWidget( myHelp, 0 );
+
+ connect( myApplyAndClose, SIGNAL( clicked() ), this, SLOT( onApplyAndClose() ) );
+ connect( myApply, SIGNAL( clicked() ), this, SLOT( onApply() ) );
+ }
+ connect( myCancel, SIGNAL( clicked() ), this, SLOT( onCancel() ) );
+ connect( myHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) );