/* SPDX-FileCopyrightText: 2019 Harald Sitter SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include #include #include #include #include #include // undef generic x stuff. should use kwindowsystem's fixx11h really #undef Status #undef None #undef Bool #undef CursorShape #undef KeyPress #undef KeyRelease #undef FocusIn #undef FocusOut #undef FontChange #undef Expose #undef Unsorted class XkbObject : public QObject { protected: XkbObject(XkbDescPtr xkb_, QObject *parent = nullptr); XkbDescPtr xkb = nullptr; QColor colorFromName(const QString &colorName) const; QColor colorFromIndex(int index) const; };