File indexing completed on 2024-06-16 05:08:52

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 "outline.h"
0008 
0009 #include <QPoint>
0010 #include <QVariant>
0011 
0012 Outline::Outline(XkbOutlinePtr outline_, XkbDescPtr xkb_, QObject *parent)
0013     : XkbObject(xkb_, parent)
0014     , outline(outline_)
0015 {
0016     for (int i = 0; i < outline->num_points; ++i) {
0017         const auto p = outline->points + i;
0018         points.push_back(QPoint(p->x, p->y));
0019     }
0020 }