Marble

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

KDE's Doxygen guidelines are available online.