ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/preferences.cpp
(Generate patch)

Comparing Vago/trunk/Vago/preferences.cpp (file contents):
Revision 897 by s10k, Wed Jan 8 11:32:55 2014 UTC vs.
Revision 1054 by s10k, Wed Oct 12 21:35:13 2016 UTC

# Line 16 | Line 16 | Preferences::Preferences(QWidget *parent
16      ui->leHeight->setText(this->vagoSettings->value("WindowHeight").toString());
17      ui->cbOniWindow->setChecked(this->vagoSettings->value("OniWindow").toBool());
18      ui->cbSeparate->setChecked(this->vagoSettings->value("SeparateInWorkspace").toBool());
19 <    ui->cbVagoExit->setChecked(this->vagoSettings->value("ConfirmExit").toBool());
19 >    ui->cbAskSaveProject->setChecked(this->vagoSettings->value("AskSaveProject").toBool());
20 >    ui->cbAskOpenLastProject->setChecked(this->vagoSettings->value("AskToOpenLastProject").toBool());
21 > #ifdef Q_OS_MAC
22 >    ui->cbUseYesAsDefaultWhenRemovingItems->setChecked(this->vagoSettings->value("useYesAsDefaultWhenRemovingItems").toBool());
23 > #endif
24 >
25 > #ifdef Q_OS_WIN
26 >    ui->cbUseYesAsDefaultWhenRemovingItems->hide(); // don't display this mac os only option in windows
27 > #endif
28  
29   }
30  
# Line 59 | Line 67 | void Preferences::accept (){
67      this->vagoSettings->setValue("WindowHeight",ui->leHeight->text());
68      this->vagoSettings->setValue("OniWindow",ui->cbOniWindow->isChecked());
69      this->vagoSettings->setValue("SeparateInWorkspace",ui->cbSeparate->isChecked());
70 <    this->vagoSettings->setValue("ConfirmExit",ui->cbVagoExit->isChecked());
70 >    this->vagoSettings->setValue("AskSaveProject",ui->cbAskSaveProject->isChecked());
71 >    this->vagoSettings->setValue("AskToOpenLastProject",ui->cbAskOpenLastProject->isChecked());
72 > #ifdef Q_OS_MAC
73 >    this->vagoSettings->setValue("useYesAsDefaultWhenRemovingItems",ui->cbUseYesAsDefaultWhenRemovingItems->isChecked());
74 > #endif
75  
76      Util::showPopUp("You need to restart the application to all changes take effect.");
77  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)