File indexing completed on 2024-03-24 15:16:55
0001 #include "fitsstardetector.h" 0002 0003 //void FITSStarDetector::configure(QStandardItemModel const &settings) 0004 //{ 0005 // Q_ASSERT(2 <= settings.columnCount()); 0006 0007 // for (int row = 0; row < settings.rowCount(); row++) 0008 // configure(settings.item(row, 0)->data().toString(), settings.item(row, 1)->data()); 0009 //} 0010 0011 void FITSStarDetector::configure(const QString &key, const QVariant &value) 0012 { 0013 m_Settings[key] = value; 0014 } 0015 0016 QVariant FITSStarDetector::getValue(const QString &key, QVariant defaultValue) const 0017 { 0018 if (m_Settings.contains(key)) 0019 return m_Settings[key]; 0020 else 0021 return defaultValue; 0022 }