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 
11 void FITSStarDetector::configure(const QString &key, const QVariant &value)
12 {
13  m_Settings[key] = value;
14 }
15 
16 QVariant 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-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:59:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.