3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-23 15:45:53 +00:00
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

43 lines
1.8 KiB
C++

/*
SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef ROW_H
#define ROW_H
#include <QRect>
#include "xkbobject.h"
class Row : public XkbObject
{
Q_OBJECT
#define R_P(type, name) \
private: \
Q_PROPERTY(type name READ auto_prop_##name CONSTANT) \
public: \
type auto_prop_##name() const \
{ \
return row->name; \
}
R_P(short, top)
R_P(short, left)
Q_PROPERTY(Qt::Orientation orientation MEMBER orientation CONSTANT)
Q_PROPERTY(QList<QObject *> keys MEMBER keys CONSTANT)
Q_PROPERTY(QRect bounds MEMBER bounds CONSTANT)
public:
Row(XkbRowPtr row_, XkbDescPtr xkb_, QObject *parent = nullptr);
XkbRowPtr row = nullptr;
Qt::Orientation orientation = Qt::Horizontal;
QList<QObject *> keys;
QRect bounds;
};
#endif // ROW_H