Marble

WaitEditWidget.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Mihail Ivchenko <ematirov@gmail.com>
4// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
5// SPDX-FileCopyrightText: 2014 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
6//
7
8#ifndef WAITEDITWIDGET_H
9#define WAITEDITWIDGET_H
10
11#include <QModelIndex>
12#include <QWidget>
13
14class QDoubleSpinBox;
15class QToolButton;
16
17namespace Marble
18{
19
20class GeoDataWait;
21
22class WaitEditWidget : public QWidget
23{
25
26public:
27 explicit WaitEditWidget(const QModelIndex &index, QWidget *parent = nullptr);
28 bool editable() const;
29
31 void editingDone(const QModelIndex &index);
32
33public Q_SLOTS:
34 void setEditable(bool editable);
35
36private Q_SLOTS:
37 void save();
38
39private:
40 GeoDataWait *waitElement();
42 QDoubleSpinBox *m_spinBox;
43 QToolButton *m_button;
44};
45
46} // namespace Marble
47
48#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.