Marble

RemoveItemEditWidget.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2015 Mihail Ivchenko <[email protected]>
4 //
5 
6 #ifndef REMOVEITEMEDITWIDGET_H
7 #define REMOVEITEMEDITWIDGET_H
8 
9 #include <QWidget>
10 #include <QPersistentModelIndex>
11 #include <QToolButton>
12 #include <QComboBox>
13 
14 class QModelIndex;
15 
16 namespace Marble
17 {
18 
19 class GeoDataAnimatedUpdate;
20 
21 class RemoveItemEditWidget: public QWidget
22 {
23  Q_OBJECT
24 
25 public:
26  explicit RemoveItemEditWidget( const QModelIndex& index, QWidget* parent=nullptr );
27  bool editable() const;
28 
29 Q_SIGNALS:
30  void editingDone( const QModelIndex& index );
31 
32 public Q_SLOTS:
33  void setEditable( bool editable );
34  void setFeatureIds( const QStringList &ids );
35  void setDefaultFeatureId( const QString &featureId );
36 
37 private Q_SLOTS:
38  void save();
39 
40 private:
41  GeoDataAnimatedUpdate* animatedUpdateElement();
42  QPersistentModelIndex m_index;
43  QToolButton *m_button;
44  QComboBox* m_comboBox;
45 };
46 
47 } // namespace Marble
48 
49 #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 Sep 27 2023 04:09:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.