5#ifndef QQUICKPOPUPWINDOW_P_P_H
6#define QQUICKPOPUPWINDOW_P_P_H
19#include <QtQuick/private/qquickwindowmodule_p.h>
20#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
33 explicit QQuickPopupWindow(QQuickPopup *popup, QWindow *parent =
nullptr);
34 QQuickPopup *popup()
const;
37 void hideEvent(QHideEvent *e) override;
38 void moveEvent(QMoveEvent *e) override;
39 void resizeEvent(QResizeEvent *e) override;
40 bool event(QEvent *e) override;
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();
51 QRect parentControlGeometry()
const;
53 Q_DISABLE_COPY(QQuickPopupWindow)
54 Q_DECLARE_PRIVATE(QQuickPopupWindow)
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 maybeUpdateImplicitContentWidth()
void setHighlightedIndex(int index, Highlighting highlight)
void createdItem(int index, QObject *object)
void updateHighlightedIndex()
QString effectiveTextRole() const
virtual qreal getContentWidth() const override
void keySearch(const QString &text)
void handleUngrab() override
bool hasCalculatedWidestText
void updateCurrentValue()
int match(int start, const QString &text, Qt::MatchFlags flags) const
bool isPopupVisible() const
void updateCurrentElements()
QPalette defaultPalette() const override
void createDelegateModel()
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 popupVisibleChanged()
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 updateCurrentIndex()
void setCurrentIndex(int index)
QLazilyAllocated< ExtraData > extra
std::optional< QPointer< QObject > > qobjectModelGuard
void updateAcceptableInput()
bool handlePress(const QPointF &point, ulong timestamp) override
void decrementCurrentIndex()
void setCurrentItemAtIndex(int, Activation activate)
bool isValidIndex(int index) const
QString tryComplete(const QString &inputText)
void incrementCurrentIndex()
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()