blob: 3e56ec1f9fcd4d0e1936b8bf1957df3d729b2e06 (
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
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef THEME_H
#define THEME_H
#include <QtCore/qobject.h>
#include <QtCore/qrect.h>
namespace Utils {
class Theme : public QObject
{
Q_OBJECT
public:
explicit Theme(QObject *parent = nullptr);
enum Area {
TopLeft = 31,
BottomRight = 47
};
Q_ENUM(Area);
Q_INVOKABLE int index(Utils::Theme::Area area) const;
Q_INVOKABLE QRectF area(Utils::Theme::Area area) const;
};
}
#endif // THEME_H
|