aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/navigator/previewtooltip.h
blob: fd80065f89e6f556bc447c6e51094a8a585fe546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QtWidgets/qwidget.h>
#include <QtGui/qpixmap.h>

namespace QmlDesigner {
namespace Ui {
class PreviewToolTip;
}

class PreviewToolTip : public QWidget
{
    Q_OBJECT

public:
    explicit PreviewToolTip(QWidget *parent = nullptr);
    ~PreviewToolTip();

    void setId(const QString &id);
    void setType(const QString &type);
    void setInfo(const QString &info);
    void setPixmap(const QPixmap &pixmap);

    QString id() const;

private:
    Ui::PreviewToolTip *m_ui;
};
}