CuteLogger
Fast and simple logging solution for Qt based applications
qmlmarkermenu.h
1/*
2 * Copyright (c) 2022 Meltytech, LLC
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef QMLMARKERMENU_H
19#define QMLMARKERMENU_H
20
21#include <QObject>
22
23class TimelineDock;
24
25class QmlMarkerMenu : public QObject
26{
27 Q_OBJECT
28
29 Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged)
30 Q_PROPERTY(int index READ index WRITE setIndex NOTIFY indexChanged)
31
32public:
33 explicit QmlMarkerMenu(QObject *parent = 0);
34 QObject *target();
35 void setTarget(QObject *timeline);
36 int index();
37 void setIndex(int index);
38
39signals:
40 void targetChanged();
41 void indexChanged();
42
43public slots:
44 void popup();
45
46private:
47 TimelineDock *m_timeline;
48 int m_index;
49};
50
51#endif // QMLMARKERMENU_H