#pragma once

#include <QGraphicsScene>
#include <QGraphicsView>

namespace Xybrid::UI {
    class LabelGadget;
    class GadgetScene : public QGraphicsScene {
        LabelGadget* toolTipObject = nullptr;
        QGraphicsItem* toolTipSource = nullptr;
        QString toolTipText;

    protected:
        QGraphicsView* view;

    public:
        GadgetScene(QGraphicsView* view);
        ~GadgetScene() override = default;

        void toolTip(QGraphicsItem*, const QString&, const QPointF&, const QColor&);
    };
}
