summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/widgets/themeevent.h
blob: 4b06f54267d9925a790c451280f22eca6c45b05d (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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef __THEMEEVENT_H__
#define __THEMEEVENT_H__

#include <QEvent>
#include <QString>

static QEvent::Type ThemeEventType = (QEvent::Type) 1010;

class ThemeEvent : public QEvent
{
public:
    explicit ThemeEvent(const QString &newTheme, QEvent::Type type = ThemeEventType );
    ~ThemeEvent();

public:
    inline QString getTheme() { return m_theme; }

private:
    QString m_theme;
};


#endif /* __THEMEEVENT_H__ */