File indexing completed on 2024-06-23 05:48:51
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2009, 2023 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_UTF16EDITOR_HPP 0010 #define KASTEN_UTF16EDITOR_HPP 0011 0012 // lib 0013 #include "../types/utf16.hpp" 0014 // Qt 0015 #include <QLineEdit> 0016 0017 class Utf16Editor : public QLineEdit 0018 { 0019 Q_OBJECT 0020 Q_PROPERTY(Utf16 data READ data WRITE setData USER true) 0021 0022 public: 0023 explicit Utf16Editor(QWidget* parent); 0024 0025 ~Utf16Editor() override; 0026 0027 public: 0028 void setData(Utf16 data); 0029 Utf16 data() const; 0030 }; 0031 0032 #endif