Marble

PlaybackTourControlItem.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#include "PlaybackTourControlItem.h"
7
8#include "GeoDataTourControl.h"
9
10namespace Marble
11{
12
13PlaybackTourControlItem::PlaybackTourControlItem(const GeoDataTourControl *tourControl)
14{
15 m_tourControl = tourControl;
16}
17
18const GeoDataTourControl *PlaybackTourControlItem::tourControl() const
19{
20 return m_tourControl;
21}
22
23void PlaybackTourControlItem::play()
24{
25 if (m_tourControl->playMode() == GeoDataTourControl::Pause) {
26 Q_EMIT paused();
27 }
28}
29
30double PlaybackTourControlItem::duration() const
31{
32 return 0;
33}
34
35void PlaybackTourControlItem::pause()
36{
37 // nothing to do
38}
39
40void PlaybackTourControlItem::seek(double position)
41{
42 Q_UNUSED(position);
43 // nothing to do
44}
45
46void PlaybackTourControlItem::stop()
47{
48 // nothing to do
49}
50
51}
Binds a QML item to a specific geodetic location in screen coordinates.
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.