Kstars

opsdslrsettings.cpp
1/*
2 SPDX-FileCopyrightText: 2023 John Evans <john.e.evans.email@googlemail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "opsdslrsettings.h"
8#include "kstars.h"
9#include "kstarsdata.h"
10#include <KConfigDialog>
11
12namespace Ekos
13{
14OpsDslrSettings::OpsDslrSettings() : QFrame(KStars::Instance())
15{
16 setupUi(this);
17
18 //Get a pointer to the KConfigDialog
19 m_ConfigDialog = KConfigDialog::exists("capturesettings");
20
21 connect(clearDSLRInfoB, &QPushButton::clicked, [ = ] ()
22 {
23 KStarsData::Instance()->userdb()->DeleteAllDSLRInfo();
24 });
25
26 connect(m_ConfigDialog, &KConfigDialog::settingsChanged, this, &OpsDslrSettings::settingsUpdated);
27}
28}
static KConfigDialog * exists(const QString &name)
void settingsChanged(const QString &dialogName)
KSUserDB * userdb()
Definition kstarsdata.h:215
This is the main window for KStars.
Definition kstars.h:89
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
void clicked(bool checked)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.