blob: d553b70387be87905f389379f0697c34e05ede71 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "../utils_global.h"
QT_BEGIN_NAMESPACE
class QAction;
class QByteArray;
class QIcon;
class QString;
QT_END_NAMESPACE
namespace Utils {
namespace Internal {
class TouchBarPrivate;
}
class QTCREATOR_UTILS_EXPORT TouchBar
{
public:
TouchBar(const QByteArray &id, const QIcon &icon, const QString &title);
TouchBar(const QByteArray &id, const QIcon &icon);
TouchBar(const QByteArray &id, const QString &title);
TouchBar(const QByteArray &id);
~TouchBar();
QByteArray id() const;
QAction *touchBarAction() const;
void insertAction(QAction *before, const QByteArray &id, QAction *action);
void insertTouchBar(QAction *before, TouchBar *touchBar);
void removeAction(QAction *action);
void removeTouchBar(TouchBar *touchBar);
void clear();
void setApplicationTouchBar();
private:
Internal::TouchBarPrivate *d;
};
} // namespace Utils
|