Marble

SoundCueEditWidget.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 SOUNDCUEEDITWIDGET_H
9 #define SOUNDCUEEDITWIDGET_H
10 
11 #include <QWidget>
12 #include <QPersistentModelIndex>
13 
14 class QLineEdit;
15 class QToolButton;
16 
17 namespace Marble
18 {
19 
20 class GeoDataSoundCue;
21 
22 class SoundCueEditWidget: public QWidget
23 {
24  Q_OBJECT
25 
26 public:
27  explicit SoundCueEditWidget( 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  void open();
39 
40 private:
41  GeoDataSoundCue* soundCueElement();
42  QPersistentModelIndex m_index;
43  QLineEdit* m_lineEdit;
44  QToolButton *m_button;
45  QToolButton *m_button2;
46 };
47 
48 } // namespace Marble
49 
50 #endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
Binds a QML item to a specific geodetic location in screen coordinates.
Q_SIGNALSQ_SIGNALS
const QList< QKeySequence > & save()
const QList< QKeySequence > & open()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.