Kstars

magnitudespinbox.cpp
1 /*
2  SPDX-FileCopyrightText: 2001 Heiko Evermann <heiko@evermann.de>
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-2024 The KDE developers.
Generated on Thu Feb 15 2024 04:02:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.