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 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_UTF8EDITOR_HPP
0010 #define KASTEN_UTF8EDITOR_HPP
0011 
0012 // lib
0013 #include "../types/utf8.hpp"
0014 // Qt
0015 #include <QLineEdit>
0016 
0017 class Utf8Editor : public QLineEdit
0018 {
0019     Q_OBJECT
0020     Q_PROPERTY(Utf8 data READ data WRITE setData USER true)
0021 
0022 public:
0023     explicit Utf8Editor(QWidget* parent);
0024 
0025     ~Utf8Editor() override;
0026 
0027 public:
0028     void setData(Utf8 data);
0029     Utf8 data() const;
0030 };
0031 
0032 #endif