Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:09:40

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QWHATSTHIS_H
0005 #define QWHATSTHIS_H
0006 
0007 #include <QtWidgets/qtwidgetsglobal.h>
0008 #include <QtCore/qobject.h>
0009 #include <QtGui/qcursor.h>
0010 
0011 QT_REQUIRE_CONFIG(whatsthis);
0012 
0013 QT_BEGIN_NAMESPACE
0014 
0015 #if QT_CONFIG(action)
0016 class QAction;
0017 #endif // QT_CONFIG(action)
0018 
0019 class Q_WIDGETS_EXPORT QWhatsThis
0020 {
0021     QWhatsThis() = delete;
0022 
0023 public:
0024     static void enterWhatsThisMode();
0025     static bool inWhatsThisMode();
0026     static void leaveWhatsThisMode();
0027 
0028     static void showText(const QPoint &pos, const QString &text, QWidget *w = nullptr);
0029     static void hideText();
0030 
0031 #if QT_CONFIG(action)
0032     static QAction *createAction(QObject *parent = nullptr);
0033 #endif // QT_CONFIG(action)
0034 
0035 };
0036 
0037 QT_END_NAMESPACE
0038 
0039 #endif // QWHATSTHIS_H