diff --git a/src/core/UBPreferencesController.cpp b/src/core/UBPreferencesController.cpp index 6297f407..2bf93f5b 100644 --- a/src/core/UBPreferencesController.cpp +++ b/src/core/UBPreferencesController.cpp @@ -38,8 +38,8 @@ UBPreferencesController::UBPreferencesController(QWidget *parent) mPreferencesWindow = new QDialog(parent, Qt::Dialog); mPreferencesUI = new Ui::preferencesDialog(); // deleted in UBPreferencesController::destructor mPreferencesUI->setupUi(mPreferencesWindow); - // ??? connect(mPreferencesUI->Username_textBox, SIGNAL(editingFinished()), this, SLOT(onCommunityUsernameChanged())); - // ??? connect(mPreferencesUI->Password_textEdit, SIGNAL(editingFinished()), this, SLOT(onCommunityPasswordChanged())); + connect(mPreferencesUI->Username_textBox, SIGNAL(editingFinished()), this, SLOT(onCommunityUsernameChanged())); + connect(mPreferencesUI->Password_textEdit, SIGNAL(editingFinished()), this, SLOT(onCommunityPasswordChanged())); wire(); } @@ -162,8 +162,8 @@ void UBPreferencesController::init() mPreferencesUI->verticalChoice->setChecked(settings->appToolBarOrientationVertical->get().toBool()); mPreferencesUI->horizontalChoice->setChecked(!settings->appToolBarOrientationVertical->get().toBool()); - // ??? mPreferencesUI->Username_textBox->setText(settings->communityUsername()); - // ??? mPreferencesUI->Password_textEdit->setText(settings->communityPassword()); + mPreferencesUI->Username_textBox->setText(settings->communityUsername()); + mPreferencesUI->Password_textEdit->setText(settings->communityPassword()); // pen tab mPenProperties->fineSlider->setValue(settings->boardPenFineWidth->get().toDouble() * sSliderRatio); @@ -184,13 +184,13 @@ void UBPreferencesController::init() void UBPreferencesController::onCommunityUsernameChanged() { UBSettings* settings = UBSettings::settings(); - // ??? settings->setCommunityUsername(mPreferencesUI->Username_textBox->text()); + settings->setCommunityUsername(mPreferencesUI->Username_textBox->text()); } void UBPreferencesController::onCommunityPasswordChanged() { UBSettings* settings = UBSettings::settings(); - // ??? settings->setCommunityPassword(mPreferencesUI->Password_textEdit->text()); + settings->setCommunityPassword(mPreferencesUI->Password_textEdit->text()); } void UBPreferencesController::close()