33 lines
842 B
C++
33 lines
842 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
#ifndef QTOOLTIP_H
|
|
#define QTOOLTIP_H
|
|
|
|
#include <QtWidgets/qtwidgetsglobal.h>
|
|
#include <QtWidgets/qwidget.h>
|
|
|
|
QT_REQUIRE_CONFIG(tooltip);
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Q_WIDGETS_EXPORT QToolTip
|
|
{
|
|
QToolTip() = delete;
|
|
public:
|
|
static void showText(const QPoint &pos, const QString &text,
|
|
QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1);
|
|
static inline void hideText() { showText(QPoint(), QString()); }
|
|
|
|
static bool isVisible();
|
|
static QString text();
|
|
|
|
static QPalette palette();
|
|
static void setPalette(const QPalette &);
|
|
static QFont font();
|
|
static void setFont(const QFont &);
|
|
};
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // QTOOLTIP_H
|