Kstars

lens.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Prakash Mohan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "oal/lens.h"
8 
9 void OAL::Lens::setLens(const QString &_id, const QString &_model, const QString &_vendor, double _factor)
10 {
11  m_Id = _id;
12  m_Model = _model;
13  m_Vendor = _vendor;
14  m_Factor = _factor;
15  if (_factor > 1)
16  m_Name = _vendor + ' ' + _model + " - " + QString::number(_factor) + "x Barlow (" + _id + ')';
17  else
18  m_Name = _vendor + ' ' + _model + " - " + QString::number(_factor) + "x Focal Reducer (" + _id + ')';
19 }
QString number(int n, int base)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 04:06:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.