#pragma once #include "widgets/BaseWindow.hpp" #include #include #include namespace chatterino { class TooltipWidget : public BaseWindow { Q_OBJECT public: static TooltipWidget *getInstance(); TooltipWidget(BaseWidget *parent = nullptr); virtual ~TooltipWidget() override; void setText(QString text); #ifdef USEWINSDK void raise(); #endif protected: void changeEvent(QEvent *) override; void leaveEvent(QEvent *) override; void themeChangedEvent() override; void scaleChangedEvent(float) override; private: QLabel *displayText; pajlada::Signals::Connection fontChangedConnection; void updateFont(); }; } // namespace chatterino