shift-shell/components/mobileshell/components/direction.h
Devin Lin 2deea1b4d0 components: Port Direction enum to c++ to improve load times
According to flame graph testing with qmlprofiler, this caused quite some overhead in QML.
2022-04-10 13:28:32 -04:00

18 lines
278 B
C++

/*
* SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <QObject>
class Direction : public QObject
{
Q_OBJECT
public:
enum Type { None = 0, Up, Down, Left, Right };
Q_ENUM(Type)
};