void CFindDialog::saveSearchSettings() const
{
	CSettings s;
	s.setValue(_settingsRootCategory + SETTINGS_BACKWARDS, searchBackwards());
	s.setValue(_settingsRootCategory + SETTINGS_CASE_SENSITIVE, caseSensitive());
	s.setValue(_settingsRootCategory + SETTINGS_REGEX, regex());
	s.setValue(_settingsRootCategory + SETTINGS_WHOLE_WORDS, wholeWords());

}
Beispiel #2
0
void CMainWindow::closeEvent(QCloseEvent *e)
{
	if (e->type() == QCloseEvent::Close)
	{
		CSettings s;
		s.setValue(KEY_GEOMETRY, saveGeometry());
		s.setValue(KEY_STATE, saveState());
		s.setValue(KEY_SPLITTER_SIZES, ui->splitter->saveState());
		s.setValue(KEY_LPANEL_GEOMETRY, ui->leftPanel->savePanelGeometry());
		s.setValue(KEY_RPANEL_GEOMETRY, ui->rightPanel->savePanelGeometry());
		s.setValue(KEY_LPANEL_STATE, ui->leftPanel->savePanelState());
		s.setValue(KEY_RPANEL_STATE, ui->rightPanel->savePanelState());

		emit closed(); // Is used to close all child windows
		emit fileQuickVewFinished(); // Cleaning up quick view widgets, if any
	}

	QMainWindow::closeEvent(e);
}