Ejemplo n.º 1
0
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;
        }
}
Ejemplo n.º 2
0
/**
 *  Saves windows' and widgets' positions and sizes when application exits.
 */
void MainWindow::closeEvent( QCloseEvent *arg )
{
    _saveSettings();
    QMainWindow::closeEvent( arg );
}
Ejemplo n.º 3
0
MainWindow::~MainWindow()
{
    _saveSettings();
}