|
|
@ -112,6 +112,7 @@ void UBPreferencesController::wire() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(const QString &)), settings->appStartMode, SLOT(setString(const QString &))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(mPreferencesUI->useExternalBrowserCheckBox, SIGNAL(clicked(bool)), settings->webUseExternalBrowser, SLOT(setBool(bool))); |
|
|
|
connect(mPreferencesUI->useExternalBrowserCheckBox, SIGNAL(clicked(bool)), settings->webUseExternalBrowser, SLOT(setBool(bool))); |
|
|
@ -180,6 +181,14 @@ void UBPreferencesController::init() |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(int i=0; i<mPreferencesUI->startModeComboBox->count(); i++) |
|
|
|
|
|
|
|
if (mPreferencesUI->startModeComboBox->itemText(i) == |
|
|
|
|
|
|
|
settings->appStartMode->get().toString()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mPreferencesUI->startModeComboBox->setCurrentIndex(i); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mPreferencesUI->useExternalBrowserCheckBox->setChecked(settings->webUseExternalBrowser->get().toBool()); |
|
|
|
mPreferencesUI->useExternalBrowserCheckBox->setChecked(settings->webUseExternalBrowser->get().toBool()); |
|
|
|
mPreferencesUI->displayBrowserPageCheckBox->setChecked(settings->webShowPageImmediatelyOnMirroredScreen->get().toBool()); |
|
|
|
mPreferencesUI->displayBrowserPageCheckBox->setChecked(settings->webShowPageImmediatelyOnMirroredScreen->get().toBool()); |
|
|
|
mPreferencesUI->webHomePage->setText(settings->webHomePage->get().toString()); |
|
|
|
mPreferencesUI->webHomePage->setText(settings->webHomePage->get().toString()); |
|
|
@ -293,6 +302,7 @@ void UBPreferencesController::defaultSettings() |
|
|
|
mPreferencesUI->toolbarDisplayTextCheckBox->setChecked(defaultValue); |
|
|
|
mPreferencesUI->toolbarDisplayTextCheckBox->setChecked(defaultValue); |
|
|
|
mPreferencesUI->verticalChoice->setChecked(settings->appToolBarOrientationVertical->reset().toBool()); |
|
|
|
mPreferencesUI->verticalChoice->setChecked(settings->appToolBarOrientationVertical->reset().toBool()); |
|
|
|
mPreferencesUI->horizontalChoice->setChecked(!settings->appToolBarOrientationVertical->reset().toBool()); |
|
|
|
mPreferencesUI->horizontalChoice->setChecked(!settings->appToolBarOrientationVertical->reset().toBool()); |
|
|
|
|
|
|
|
mPreferencesUI->startModeComboBox->setCurrentIndex(0); |
|
|
|
} |
|
|
|
} |
|
|
|
else if (mPreferencesUI->mainTabWidget->currentWidget() == mPreferencesUI->penTab) |
|
|
|
else if (mPreferencesUI->mainTabWidget->currentWidget() == mPreferencesUI->penTab) |
|
|
|
{ |
|
|
|
{ |
|
|
|