Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/opsguide.cpp
Show All 26 Lines | |||||
27 | { | 27 | { | ||
28 | OpsGuide::OpsGuide() : QFrame(KStars::Instance()) | 28 | OpsGuide::OpsGuide() : QFrame(KStars::Instance()) | ||
29 | { | 29 | { | ||
30 | setupUi(this); | 30 | setupUi(this); | ||
31 | 31 | | |||
32 | //Get a pointer to the KConfigDialog | 32 | //Get a pointer to the KConfigDialog | ||
33 | m_ConfigDialog = KConfigDialog::exists("guidesettings"); | 33 | m_ConfigDialog = KConfigDialog::exists("guidesettings"); | ||
34 | 34 | | |||
35 | connect(kcfg_GuideRemoteImagesEnabled, &QCheckBox::toggled, this, [this] () | | |||
36 | { | | |||
37 | if (Options::guideRemoteImagesEnabled() != kcfg_GuideRemoteImagesEnabled->isChecked()) | | |||
38 | KSNotification::info(i18n("You must restart KStars for this change to take effect.")); | | |||
39 | }); | | |||
40 | | ||||
41 | connect(kcfg_DitherNoGuiding, &QCheckBox::toggled, this, [&](bool checked) { | 35 | connect(kcfg_DitherNoGuiding, &QCheckBox::toggled, this, [&](bool checked) { | ||
42 | if (checked && kcfg_DitherEnabled->isChecked()) | 36 | if (checked && kcfg_DitherEnabled->isChecked()) | ||
43 | { | 37 | { | ||
44 | KSNotification::error("Guided dithering cannot be used along with non-guided dithering."); | 38 | KSNotification::error("Guided dithering cannot be used along with non-guided dithering."); | ||
45 | kcfg_DitherEnabled->setChecked(false); | 39 | kcfg_DitherEnabled->setChecked(false); | ||
46 | } | 40 | } | ||
47 | }); | 41 | }); | ||
48 | 42 | | |||
49 | connect(m_ConfigDialog, SIGNAL(settingsChanged(QString)), this, SIGNAL(settingsUpdated())); | 43 | connect(m_ConfigDialog, SIGNAL(settingsChanged(QString)), this, SIGNAL(settingsUpdated())); | ||
50 | } | 44 | } | ||
51 | } | 45 | } |