File indexing completed on 2024-04-21 14:46:27

0001 /*
0002     SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "oal/lens.h"
0008 
0009 void OAL::Lens::setLens(const QString &_id, const QString &_model, const QString &_vendor, double _factor)
0010 {
0011     m_Id     = _id;
0012     m_Model  = _model;
0013     m_Vendor = _vendor;
0014     m_Factor = _factor;
0015     if (_factor > 1)
0016         m_Name = _vendor + ' ' + _model + " - " + QString::number(_factor) + "x Barlow (" + _id + ')';
0017     else
0018         m_Name = _vendor + ' ' + _model + " - " + QString::number(_factor) + "x Focal Reducer (" + _id + ')';
0019 }