Marble

SoundCueEditWidget.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 SOUNDCUEEDITWIDGET_H
9#define SOUNDCUEEDITWIDGET_H
10
11#include <QPersistentModelIndex>
12#include <QWidget>
13
14class QLineEdit;
15class QToolButton;
16
17namespace Marble
18{
19
20class GeoDataSoundCue;
21
22class SoundCueEditWidget : public QWidget
23{
25
26public:
27 explicit SoundCueEditWidget(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 void open();
39
40private:
41 GeoDataSoundCue *soundCueElement();
43 QLineEdit *const m_lineEdit;
44 QToolButton *const m_button;
45 QToolButton *const m_button2;
46};
47
48} // namespace Marble
49
50#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.