}
MenuWidget::~MenuWidget() {
- //because tabWidget have no parent we must destroy it
+ //because tabWidget has no parent we must destroy it
delete tabWidget;
}
}
QWidget* MenuWidget::createWidget(QWidget *) {
- /*When we have request to create new widget we returns tabWidget.
+ /*When we have request to create new widget we return tabWidget.
When the menu is closing, tabWidget will receive hideEvent which will set
- it parent to NULL and prevent it from delete, so we can still use this
+ its parent to NULL and prevent it from delete, so we can still use this
widget*/
return tabWidget;