Kstars

exposurewidget.h
1/*
2 SPDX-FileCopyrightText: 2024 John Evans <john.e.evans.email@googlemail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDoubleSpinBox>
10
11// ExposureWidgetis a subclass of QDoubleSpinBox.
12// It has been created for use with the Focus exposure field. This field has been extended to allow exposures
13// as short as 0.00001s. To keep consistency with the exposure field in Capture only 3dps are displayed by
14// default, e.g.:
15// 2 is displayed as 2.000
16// 2.1 is displayed as 2.100
17// 2.001 is displayed as 2.001
18// 2.0001 is displayed as 2.0001
19// 2.00001 is displayed as 2.00001
20//
21// This header file is linked into QT Designer using the Promote widget approach so that ExposureWidget rather than
22// QDoubleSpinBox is used.
23//
24class ExposureWidget : public QDoubleSpinBox
25{
27
28 public:
29
30 /**
31 * @brief Create an ExposureWidget
32 * @param parent widget
33 */
34 ExposureWidget(QWidget *parent = 0);
35 ~ExposureWidget();
36
37 /**
38 * @brief textFromValue displays textual information for the associated value
39 * @param event
40 */
41 QString textFromValue(double value) const override;
42};
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.