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
qquickpopupwindow_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKPOPUPWINDOW_P_P_H
6#define QQUICKPOPUPWINDOW_P_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuick/private/qquickwindowmodule_p.h>
20#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
21
23
24class QQuickPopup;
26
27class Q_QUICKTEMPLATES2_EXPORT QQuickPopupWindow : public QQuickWindowQmlImpl
28{
29 Q_OBJECT
30 QML_ANONYMOUS
31
32public:
33 explicit QQuickPopupWindow(QQuickPopup *popup, QWindow *parent = nullptr);
34 QQuickPopup *popup() const;
35
36protected:
37 void hideEvent(QHideEvent *e) override;
38 void moveEvent(QMoveEvent *e) override;
39 void resizeEvent(QResizeEvent *e) override;
40 bool event(QEvent *e) override;
41
42private:
43 void windowChanged(QWindow *window);
44 std::optional<QPoint> global2Local(const QPoint &pos) const;
45 void parentWindowXChanged(int newX);
46 void parentWindowYChanged(int newY);
47 void handlePopupPositionChangeFromWindowSystem(const QPoint &pos);
48 void implicitWidthChanged();
49 void implicitHeightChanged();
50#if QT_CONFIG(wayland)
51 QRect parentControlGeometry() const;
52#endif
53 Q_DISABLE_COPY(QQuickPopupWindow)
54 Q_DECLARE_PRIVATE(QQuickPopupWindow)
55};
56
57QT_END_NAMESPACE
58
59#endif // QQUICKPOPUPWINDOW_P_P_H
QQuickComboBoxDelegateModel(QQuickComboBox *combo)
QVariant variantValue(int index, const QString &role) override
void itemDestroyed(QQuickItem *item) override
bool handleRelease(const QPointF &point, ulong timestamp) override
CurrentElementCriteria currentElementCriteria
QQuickDeferredPointer< QQuickPopup > popup
qreal calculateWidestTextWidth() const
static void hideOldPopup(QQuickPopup *popup)
void setInputMethodHints(Qt::InputMethodHints hints, bool force=false)
void setHighlightedIndex(int index, Highlighting highlight)
void createdItem(int index, QObject *object)
QString effectiveTextRole() const
virtual qreal getContentWidth() const override
void keySearch(const QString &text)
void handleUngrab() override
int match(int start, const QString &text, Qt::MatchFlags flags) const
QPalette defaultPalette() const override
bool handleMove(const QPointF &point, ulong timestamp) override
QQmlInstanceModel * delegateModel
void itemImplicitHeightChanged(QQuickItem *item) override
void togglePopup(bool accept)
void executePopup(bool complete=false)
void itemImplicitWidthChanged(QQuickItem *item) override
void onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles)
void executeIndicator(bool complete=false)
QQuickDeferredPointer< QQuickItem > indicator
void hidePopup(bool accept)
void setCurrentIndex(int index)
QLazilyAllocated< ExtraData > extra
std::optional< QPointer< QObject > > qobjectModelGuard
bool handlePress(const QPointF &point, ulong timestamp) override
void setCurrentItemAtIndex(int, Activation activate)
bool isValidIndex(int index) const
QString tryComplete(const QString &inputText)
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
QT_REQUIRE_CONFIG(qml_delegate_model)
static QString popupName()
Qt::InputMethodHints inputMethodHints