|
|
@ -138,8 +138,12 @@ void UBPreferencesController::wire() |
|
|
|
connect(mPreferencesUI->useSystemOSKCheckBox, SIGNAL(clicked(bool)), settings->useSystemOnScreenKeyboard, SLOT(setBool(bool))); |
|
|
|
connect(mPreferencesUI->useSystemOSKCheckBox, SIGNAL(clicked(bool)), settings->useSystemOnScreenKeyboard, SLOT(setBool(bool))); |
|
|
|
connect(mPreferencesUI->useSystemOSKCheckBox, SIGNAL(clicked(bool)), this, SLOT(systemOSKCheckBoxToggled(bool))); |
|
|
|
connect(mPreferencesUI->useSystemOSKCheckBox, SIGNAL(clicked(bool)), this, SLOT(systemOSKCheckBoxToggled(bool))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Documents Mode preferences
|
|
|
|
connect(mPreferencesUI->showDateColumnOnAlphabeticalSort, SIGNAL(clicked(bool)), settings->showDateColumnOnAlphabeticalSort, SLOT(setBool(bool))); |
|
|
|
connect(mPreferencesUI->showDateColumnOnAlphabeticalSort, SIGNAL(clicked(bool)), settings->showDateColumnOnAlphabeticalSort, SLOT(setBool(bool))); |
|
|
|
connect(mPreferencesUI->showDateColumnOnAlphabeticalSort, SIGNAL(clicked(bool)), UBApplication::documentController, SLOT(refreshDateColumns())); |
|
|
|
connect(mPreferencesUI->showDateColumnOnAlphabeticalSort, SIGNAL(clicked(bool)), UBApplication::documentController, SLOT(refreshDateColumns())); |
|
|
|
|
|
|
|
connect(mPreferencesUI->emptyTrashForOlderDocuments, SIGNAL(clicked(bool)), settings->emptyTrashForOlderDocuments, SLOT(setBool(bool))); |
|
|
|
|
|
|
|
connect(mPreferencesUI->emptyTrashDaysValue, SIGNAL(valueChanged(int)), settings->emptyTrashDaysValue, SLOT(setInt(int))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(mPreferencesUI->keyboardPaletteKeyButtonSize, SIGNAL(currentIndexChanged(const QString &)), settings->boardKeyboardPaletteKeyBtnSize, SLOT(setString(const QString &))); |
|
|
|
connect(mPreferencesUI->keyboardPaletteKeyButtonSize, SIGNAL(currentIndexChanged(const QString &)), settings->boardKeyboardPaletteKeyBtnSize, SLOT(setString(const QString &))); |
|
|
|
connect(mPreferencesUI->startModeComboBox, SIGNAL(currentIndexChanged(int)), settings->appStartMode, SLOT(setInt(int))); |
|
|
|
connect(mPreferencesUI->startModeComboBox, SIGNAL(currentIndexChanged(int)), settings->appStartMode, SLOT(setInt(int))); |
|
|
@ -279,6 +283,8 @@ void UBPreferencesController::init() |
|
|
|
this->systemOSKCheckBoxToggled(mPreferencesUI->useSystemOSKCheckBox->isChecked()); |
|
|
|
this->systemOSKCheckBoxToggled(mPreferencesUI->useSystemOSKCheckBox->isChecked()); |
|
|
|
|
|
|
|
|
|
|
|
mPreferencesUI->showDateColumnOnAlphabeticalSort->setChecked(settings->showDateColumnOnAlphabeticalSort->get().toBool()); |
|
|
|
mPreferencesUI->showDateColumnOnAlphabeticalSort->setChecked(settings->showDateColumnOnAlphabeticalSort->get().toBool()); |
|
|
|
|
|
|
|
mPreferencesUI->emptyTrashForOlderDocuments->setChecked(settings->emptyTrashForOlderDocuments->get().toBool()); |
|
|
|
|
|
|
|
mPreferencesUI->emptyTrashDaysValue->setValue(settings->emptyTrashDaysValue->get().toInt()); |
|
|
|
|
|
|
|
|
|
|
|
mPreferencesUI->startModeComboBox->setCurrentIndex(settings->appStartMode->get().toInt()); |
|
|
|
mPreferencesUI->startModeComboBox->setCurrentIndex(settings->appStartMode->get().toInt()); |
|
|
|
|
|
|
|
|
|
|
@ -344,8 +350,13 @@ void UBPreferencesController::defaultSettings() |
|
|
|
mPreferencesUI->startModeComboBox->setCurrentIndex(0); |
|
|
|
mPreferencesUI->startModeComboBox->setCurrentIndex(0); |
|
|
|
|
|
|
|
|
|
|
|
mPreferencesUI->useSystemOSKCheckBox->setChecked(settings->useSystemOnScreenKeyboard->reset().toBool()); |
|
|
|
mPreferencesUI->useSystemOSKCheckBox->setChecked(settings->useSystemOnScreenKeyboard->reset().toBool()); |
|
|
|
|
|
|
|
|
|
|
|
mPreferencesUI->showDateColumnOnAlphabeticalSort->setChecked(settings->showDateColumnOnAlphabeticalSort->reset().toBool()); |
|
|
|
mPreferencesUI->showDateColumnOnAlphabeticalSort->setChecked(settings->showDateColumnOnAlphabeticalSort->reset().toBool()); |
|
|
|
UBApplication::documentController->refreshDateColumns(); |
|
|
|
UBApplication::documentController->refreshDateColumns(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mPreferencesUI->emptyTrashForOlderDocuments->setChecked(settings->emptyTrashForOlderDocuments->reset().toBool()); |
|
|
|
|
|
|
|
mPreferencesUI->emptyTrashDaysValue->setValue(settings->emptyTrashDaysValue->reset().toInt()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else if (mPreferencesUI->mainTabWidget->currentWidget() == mPreferencesUI->penTab) |
|
|
|
else if (mPreferencesUI->mainTabWidget->currentWidget() == mPreferencesUI->penTab) |
|
|
|
{ |
|
|
|
{ |
|
|
|