Kstars

lens.cpp
1/*
2 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "oal/lens.h"
8
9void 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(double n, char format, int precision)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.