QHBoxLayout *buttonLayout = new QHBoxLayout;
iOkButton = new QPushButton;
iOkButton->setText( tr( "OK" ) );
- iCancelButton = new QPushButton;
- iCancelButton->setText( tr( "Cancel" ) );
buttonLayout->addWidget( iOkButton );
- buttonLayout->addWidget( iCancelButton );
// Handle the main layout
QVBoxLayout *mainLayout = new QVBoxLayout;
// Handle component connections
connect( iOkButton, SIGNAL( clicked() ), this, SLOT( handleOkClicked() ) );
- connect( iCancelButton, SIGNAL( clicked() ), this, SLOT( cancelClicked() ) );
}
SettingsView::~SettingsView()
delete iOkButton;
iOkButton = 0;
}
- if ( iCancelButton != 0 )
- {
- delete iCancelButton;
- iCancelButton = 0;
- }
if ( iSettingsTab != 0 )
{
delete iSettingsTab;
// Emit the signal to notify that ok is pressed and data is saved.
emit okClicked();
-
-// close();
-}
-
-void SettingsView::cancelClicked()
-{
- qDebug() << "[SettingsView::cancelClicked] <Invoked>";
- close();
}
void SettingsView::viewResized(const QSize &size)