Kstars

fitsstardetector.cpp
1#include "fitsstardetector.h"
2
3//void FITSStarDetector::configure(QStandardItemModel const &settings)
4//{
5// Q_ASSERT(2 <= settings.columnCount());
6
7// for (int row = 0; row < settings.rowCount(); row++)
8// configure(settings.item(row, 0)->data().toString(), settings.item(row, 1)->data());
9//}
10
11void FITSStarDetector::configure(const QString &key, const QVariant &value)
12{
13 m_Settings[key] = value;
14}
15
16QVariant FITSStarDetector::getValue(const QString &key, QVariant defaultValue) const
17{
18 if (m_Settings.contains(key))
19 return m_Settings[key];
20 else
21 return defaultValue;
22}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.