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
17MagnitudeSpinBox::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 setRange(double minimum, double maximum)
void setSingleStep(double val)
void setValue(double val)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.