File indexing completed on 2024-11-24 05:00:37

0001 /*
0002     SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #include "row.h"
0008 
0009 #include "key.h"
0010 
0011 Row::Row(XkbRowPtr row_, XkbDescPtr xkb_, QObject *parent)
0012     : XkbObject(xkb_, parent)
0013     , row(row_)
0014     , orientation(row->vertical ? Qt::Vertical : Qt::Horizontal)
0015     , bounds(QRect(row->bounds.x1, row->bounds.y1, row->bounds.x2, row->bounds.y2))
0016 {
0017     for (int i = 0; i < row->num_keys; ++i) {
0018         keys.push_back(new Key(row->keys + i, xkb, this));
0019     }
0020 }