summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofileractions.h
blob: 95a884513f1ea3e49e7149e03683fcb477c3b970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <coreplugin/actionmanager/actioncontainer.h>

#include <QObject>
#include <QAction>

#include <memory>

namespace QmlProfiler {
namespace Internal {

class QmlProfilerTool;
class QmlProfilerActions : public QObject
{
    Q_OBJECT
public:
    explicit QmlProfilerActions(QObject *parent = nullptr);

    void attachToTool(QmlProfilerTool *tool);
    void registerActions();

private:
    std::unique_ptr<Core::ActionContainer> m_options;
    std::unique_ptr<QAction> m_loadQmlTrace;
    std::unique_ptr<QAction> m_saveQmlTrace;
    std::unique_ptr<QAction> m_runAction;
    std::unique_ptr<QAction> m_attachAction;
};

} // namespace Internal
} // namespace QmlProfiler