#pragma once /* * SPDX-FileCopyrightText: 2003-2007 Craig Drummond * SPDX-License-Identifier: GPL-2.0-or-later */ #include "FcEngine.h" #include class QLabel; class QTimer; class QResizeEvent; class QEvent; namespace KFI { class CFontPreview; class CCharTip : public QFrame { Q_OBJECT public: CCharTip(CFontPreview *parent); ~CCharTip() override; void setItem(const CFcEngine::TChar &ch); private Q_SLOTS: void showTip(); void hideTip(); private: void reposition(); void resizeEvent(QResizeEvent *event) override; bool eventFilter(QObject *, QEvent *e) override; private: CFontPreview *m_parent; QLabel *m_label, *m_pixmapLabel; QTimer *m_timer; CFcEngine::TChar m_item; }; }