Kstars

magnitudespinbox.cpp
1 /*
2  SPDX-FileCopyrightText: 2001 Heiko Evermann <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "magnitudespinbox.h"
8 
10 {
11  setRange(0, 10);
12  setValue(0);
13  setDecimals(1);
14  setSingleStep(0.1);
15 }
16 
17 MagnitudeSpinBox::MagnitudeSpinBox(double minValue, double maxValue, QWidget *parent) : QDoubleSpinBox(parent)
18 {
19  setRange(minValue, maxValue);
20  setValue(minValue);
21  setDecimals(1);
22  setSingleStep(0.1);
23 }
MagnitudeSpinBox(QWidget *parent=nullptr)
Default Constructor.
void setDecimals(int prec)
void setValue(double val)
void setRange(double minimum, double maximum)
void setSingleStep(double val)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.