~hmatuschek/+junk/qdmr-package

« back to all changes in this revision

Viewing changes to src/settings.cc

  • Committer: Hannes Matuschek
  • Date: 2020-07-07 14:34:22 UTC
  • mto: (17.1.1 qdmr-package)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: hmatuschek@gmail.com-20200707143422-1djcxrjkem3k5kb1
Tags: upstream-0.3.0
ImportĀ upstreamĀ versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
  return loc2deg(locator());
110
110
}
111
111
 
 
112
bool
 
113
Settings::updateCodeplug() const {
 
114
  return value("updateCodeplug", true).toBool();
 
115
}
 
116
 
 
117
void
 
118
Settings::setUpdateCodeplug(bool update) {
 
119
  setValue("updateCodeplug", update);
 
120
}
112
121
 
113
122
SettingsDialog::SettingsDialog(QWidget *parent)
114
123
  : QDialog(parent)
130
139
  if (queryLocation->isChecked())
131
140
    locatorEntry->setEnabled(false);
132
141
 
 
142
  Ui::SettingsDialog::updateCodeplug->setChecked(settings.updateCodeplug());
 
143
 
133
144
  connect(queryLocation, SIGNAL(toggled(bool)), this, SLOT(onSystemLocationToggled(bool)));
134
145
}
135
146
 
160
171
  }
161
172
}
162
173
 
 
174
bool
 
175
SettingsDialog::updateCodeplug() const {
 
176
  return Ui::SettingsDialog::updateCodeplug->isChecked();
 
177
}
 
178
 
163
179
 
164
180
 
165
181