Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickdrawer.cpp File Reference
#include "qquickdrawer_p.h"
#include "qquickdrawer_p_p.h"
#include "qquickpopupitem_p_p.h"
#include "qquickpopuppositioner_p_p.h"
#include <QtGui/qstylehints.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtQml/qqmlinfo.h>
#include <QtQuick/private/qquickwindow_p.h>
#include <QtQuick/private/qquickanimation_p.h>
#include <QtQuick/private/qquicktransition_p.h>
#include "moc_qquickdrawer_p.cpp"
+ Include dependency graph for qquickdrawer.cpp:

Go to the source code of this file.

Classes

class  QQuickDrawerPositioner
 Side panel that can be opened and closed using a swipe gesture. More...
 

Functions

static bool isWithinDragMargin (const QQuickDrawer *drawer, const QPointF &pos)
 
static bool keepGrab (QQuickItem *item)
 
static QList< QQuickStateActionprepareTransition (QQuickDrawer *drawer, QQuickTransition *transition, qreal to)
 

Variables

static const qreal openCloseVelocityThreshold = 300
 

Function Documentation

◆ isWithinDragMargin()

static bool isWithinDragMargin ( const QQuickDrawer drawer,
const QPointF pos 
)
static

Definition at line 248 of file qquickdrawer.cpp.

References Qt::BottomEdge, QQuickDrawer::dragMargin, QQuickDrawer::edge, QQuickPopup::height, Qt::LeftEdge, pos, Qt::RightEdge, Qt::TopEdge, and QQuickPopup::width.

Referenced by QQuickDrawerPrivate::blockInput(), and QQuickDrawerPrivate::startDrag().

+ Here is the caller graph for this function:

◆ keepGrab()

static bool keepGrab ( QQuickItem item)
inlinestatic

Definition at line 308 of file qquickdrawer.cpp.

References item.

Referenced by QQuickDrawerPrivate::grabMouse().

+ Here is the caller graph for this function:

◆ prepareTransition()

static QList< QQuickStateAction > prepareTransition ( QQuickDrawer drawer,
QQuickTransition transition,
qreal  to 
)
static

Definition at line 552 of file qquickdrawer.cpp.

References QQuickTransition::animations, QQmlListProperty< T >::at, QQmlListProperty< T >::count, QQuickTransition::enabled, QQuickPopupPrivate::get(), i, qmlExecuteDeferred(), QQuickAbstractAnimation::setDefaultTarget(), and window().

Referenced by QQuickDrawerPrivate::prepareEnterTransition(), QQuickDrawerPrivate::prepareExitTransition(), and QQuickBasePositioner::prePositioning().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ openCloseVelocityThreshold

const qreal openCloseVelocityThreshold = 300
static

Definition at line 413 of file qquickdrawer.cpp.

Referenced by QQuickDrawerPrivate::handleRelease().