void ActivityReportConfigurationDialog::slotDelayedInitialization() { slotStandardTimeSpansChanged(); connect( Application::instance().dateChangeWatcher(), SIGNAL( dateChanged() ), SLOT( slotStandardTimeSpansChanged() ) ); // FIXME load settings }
void WeeklyTimesheetConfigurationDialog::slotDelayedInitialization() { slotStandardTimeSpansChanged(); connect( Application::instance().dateChangeWatcher(), SIGNAL( dateChanged() ), SLOT( slotStandardTimeSpansChanged() ) ); // load settings: QSettings settings; if ( settings.contains( MetaKey_TimesheetActiveOnly ) ) { m_ui->checkBoxActiveOnly->setChecked( settings.value( MetaKey_TimesheetActiveOnly ).toBool() ); } else { m_ui->checkBoxActiveOnly->setChecked( true ); } }