Marble

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

KDE's Doxygen guidelines are available online.