Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquicktooltip_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKTOOLTIP_P_P_H
5#define QQUICKTOOLTIP_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick/private/qquickattachedpropertypropagator_p_p.h>
19#include <QtQuickTemplates2/private/qquicktooltip_p.h>
20#include <QtQml/private/qqmlpropertyutils_p.h>
21
23
24class Q_AUTOTEST_EXPORT QQuickToolTipAttachedPrivate
25 : public QtPrivate::QQuickAttachedPropertyPropagatorPrivate
26{
27 Q_DECLARE_PUBLIC(QQuickToolTipAttached)
28
29public:
30 QQuickToolTip *instance(bool create) const;
31
32 static QQuickToolTipAttachedPrivate *get(QQuickToolTipAttached *toolTipAttached)
33 {
34 return toolTipAttached->d_func();
35 }
36
37 static void maybeSetVisibleImplicitly(const QObject *attachee, bool visible);
38 void setVisible(bool visible, QQml::PropertyUtils::State propertyState);
39 bool isVisibleExplicitlySet() const;
40
41 void setDelay(int delay, QQml::PropertyUtils::State propertyState);
42 bool isDelayExplicitlySet() const;
43
44 void setTimeout(int timeout, QQml::PropertyUtils::State propertyState);
45 bool isTimeoutExplicitlySet() const;
46
47 void inheritPolicy(QQuickToolTip::Policy policy);
48 void propagatePolicy();
49
50 bool warnIfAttacheeIsNotAnItem(const QString &functionName);
51
52 static int calculateTimeout(const QString &text);
53
54 bool complete = true;
55 bool explicitVisible = false;
56 bool pendingShow = false;
57 bool explicitDelay = false;
58 bool explicitTimeout = false;
59 int delay = 0;
60 int timeout = -1;
61 QString text;
62 QQuickToolTip::Policy policy = QQuickToolTip::Automatic;
63};
64
65QT_END_NAMESPACE
66
67#endif // QQUICKTOOLTIP_P_P_H
Groups actions together.
void trigger(QObject *, bool doToggle)
bool handleShortcutEvent(QObject *object, QShortcutEvent *event)
void itemDestroyed(QQuickItem *item) override
void registerItem(QQuickItem *item)
bool watchItem(QQuickItem *item)
QQuickActionGroup * group
void itemVisibilityChanged(QQuickItem *item) override
bool unwatchItem(QQuickItem *item)
void unregisterItem(QQuickItem *item)
Mutually-exclusive group of checkable buttons.
Combined button and popup list for selecting options.
Q_QUICKTEMPLATES2_EXPORT void completeDeferred(QObject *object, const QString &property, QQuickUntypedDeferredPointer *delegate, QQmlEngine *engine=nullptr)
Q_QUICKTEMPLATES2_EXPORT void beginDeferred(QObject *object, const QString &property, QQuickUntypedDeferredPointer *delegate, bool isOwnState, QQmlEngine *engine=nullptr)
Q_QUICKTEMPLATES2_EXPORT void cancelDeferred(QObject *object, const QString &property)
void quickBeginAttachedDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate, QQmlEngine *engine)
void quickCancelDeferred(QObject *object, const QString &property)
void quickCompleteDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate)
void quickCompleteAttachedDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate, QQmlEngine *engine)
void quickBeginDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate)