re-enabled some preferences

preferencesAboutTextFull
shibakaneki 14 years ago
parent 38a18ab051
commit 331a82ff16
  1. 12
      src/core/UBPreferencesController.cpp

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

Loading…
Cancel
Save