aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols/testbench/utils.h
blob: 048fb27fbbefe2088106c496ef007610a9c7871c (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) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef UTILS_H
#define UTILS_H

#include <QObject>
#include <QtQmlIntegration/qqmlintegration.h>
#include <QUrl>

class Utils : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QStringList availableStyles READ availableStyles CONSTANT FINAL)
    Q_PROPERTY(QUrl iconUrl READ iconUrl CONSTANT FINAL)
    QML_ELEMENT
    QML_SINGLETON

public:
    explicit Utils(QObject *parent = nullptr);

    QStringList availableStyles() const;
    QUrl iconUrl() const;

private:
    QUrl mIconUrl;
};

#endif // UTILS_H