44 #ifndef QT_NO_RESIZEHANDLER 55 #include "private/qlayoutengine_p.h" 65 :
QObject(parent),
widget(parent), childWidget(cw ? cw : parent),
66 fw(0), extrahei(0), buttonDown(false), moveResizeMode(false), sizeprotect(true), movingEnabled(true)
124 #if defined(Q_WS_X11) 137 # endif // QT_NO_CURSOR 215 else if (pos.
y() <=
range)
219 else if (pos.
x() <=
range)
246 if (globalPos.
x() < 0)
248 if (globalPos.
y() < 0)
270 int mh = ms.height();
314 geom.moveTopLeft(pp);
320 geom =
QRect(geom.topLeft(),
322 .expandedTo(
QSize(mw, mh))
323 .boundedTo(maxsize));
342 for (
int i = 0; i < children.
size(); ++i) {
343 if (
QWidget *w = qobject_cast<QWidget*>(children.
at(i))) {
344 if (!w->testAttribute(
Qt::WA_SetCursor) && !w->inherits(
"QWorkspaceTitleBar")) {
371 #endif // QT_NO_CURSOR 379 int delta = is_control?1:8;
547 #endif //QT_NO_RESIZEHANDLER
The QKeyEvent class describes a key event.
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
#define QT_END_NAMESPACE
This macro expands to.
Q_GUI_EXPORT QSize qSmartMinSize(const QSize &sizeHint, const QSize &minSizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy)
QPointer< QWidget > widget
QSize expandedTo(const QSize &) const
Returns a size holding the maximum width and height of this size and the given otherSize.
int left() const
Returns the x-coordinate of the rectangle's left edge.
int & ry()
Returns a reference to the y coordinate of this point.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
T * qobject_cast(QObject *object)
static void setPos(int x, int y)
Moves the cursor (hot spot) to the global screen position (x, y).
The QObject class is the base class of all Qt objects.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifier flags that existed immediately after the event occurred.
int key() const
Returns the code of the key that was pressed or released.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QPoint bottomRight() const
Returns the position of the rectangle's bottom-right corner.
const T & at(int i) const
Returns the item at index position i in the list.
bool spontaneous() const
Returns true if the event originated outside the application (a system event); otherwise returns fals...
int & rx()
Returns a reference to the x coordinate of this point.
Qt::MouseButton button() const
Returns the button that caused the event.
bool contains(const QPoint &p, bool proper=false) const
Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false...
The QMouseEvent class contains parameters that describe a mouse event.
static QDesktopWidget * desktop()
Returns the desktop widget (also called the root window).
int top() const
Returns the y-coordinate of the rectangle's top edge.
static QWidget * activePopupWidget()
Returns the active popup widget.
Qt::MouseButtons buttons() const
Returns the button state when the event was generated.
int right() const
Returns the x-coordinate of the rectangle's right edge.
int y() const
Returns the y-coordinate of the rectangle's top edge.
static void syncX()
Synchronizes with the X server in the X11 implementation.
int x() const
Returns the x-coordinate of the rectangle's left edge.
The QPoint class defines a point in the plane using integer precision.
void installEventFilter(QObject *)
Installs an event filter filterObj on this object.
int size() const
Returns the number of items in the list.
The QRect class defines a rectangle in the plane using integer precision.
const QObjectList & children() const
Returns a list of child objects.
int y() const
Returns the y coordinate of this point.
The QSize class defines the size of a two-dimensional object using integer point precision.
bool intersects(const QRect &r) const
Returns true if this rectangle intersects with the given rectangle (i.
int x() const
Returns the x coordinate of this point.
int frameWidth
the width of the frame that is drawn.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
The QFrame class is the base class of widgets that can have a frame.
const QPoint & globalPos() const
Returns the global position of the mouse cursor at the time of the event.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static QPoint pos()
Returns the position of the cursor (hot spot) in global screen coordinates.
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.