RecentFiles::~RecentFiles() { if( _changed ) _saveSettings(); delete _separatorAct; _separatorAct = 0; for( int i = 0; i < _maxRecentItems; ++i ) if( _recentActs[i] ) { delete _recentActs[i]; _recentActs[i] = 0; } }
/** * Saves windows' and widgets' positions and sizes when application exits. */ void MainWindow::closeEvent( QCloseEvent *arg ) { _saveSettings(); QMainWindow::closeEvent( arg ); }
MainWindow::~MainWindow() { _saveSettings(); }