Qt 4.8
Classes | Macros | Functions
qsizegrip.cpp File Reference
#include "qsizegrip.h"
#include "qapplication.h"
#include "qevent.h"
#include "qpainter.h"
#include "qstyle.h"
#include "qstyleoption.h"
#include "qlayout.h"
#include "qdebug.h"
#include <QDesktopWidget>
#include <private/qt_x11_p.h>
#include <private/qt_mac_p.h>
#include <private/qwidget_p.h>
#include <QtGui/qabstractscrollarea.h>
#include "moc_qsizegrip.cpp"

Go to the source code of this file.

Classes

class  QSizeGripPrivate
 

Macros

#define SZ_SIZEBOTTOMLEFT   0xf007
 
#define SZ_SIZEBOTTOMRIGHT   0xf008
 
#define SZ_SIZETOPLEFT   0xf004
 
#define SZ_SIZETOPRIGHT   0xf005
 

Functions

static QWidgetqt_sizegrip_topLevelWidget (QWidget *w)
 

Macro Definition Documentation

◆ SZ_SIZEBOTTOMLEFT

#define SZ_SIZEBOTTOMLEFT   0xf007

Definition at line 68 of file qsizegrip.cpp.

Referenced by QSizeGrip::mousePressEvent().

◆ SZ_SIZEBOTTOMRIGHT

#define SZ_SIZEBOTTOMRIGHT   0xf008

Definition at line 67 of file qsizegrip.cpp.

Referenced by QSizeGrip::mousePressEvent().

◆ SZ_SIZETOPLEFT

#define SZ_SIZETOPLEFT   0xf004

Definition at line 69 of file qsizegrip.cpp.

Referenced by QSizeGrip::mousePressEvent().

◆ SZ_SIZETOPRIGHT

#define SZ_SIZETOPRIGHT   0xf005

Definition at line 70 of file qsizegrip.cpp.

Referenced by QSizeGrip::mousePressEvent().

Function Documentation

◆ qt_sizegrip_topLevelWidget()

static QWidget* qt_sizegrip_topLevelWidget ( QWidget w)
static

Definition at line 74 of file qsizegrip.cpp.

Referenced by QSizeGripPrivate::corner(), QSizeGrip::mouseMoveEvent(), QSizeGrip::mousePressEvent(), QSizeGripPrivate::updateMacSizer(), and QSizeGripPrivate::updateTopLevelWidget().

75 {
76  while (w && !w->isWindow() && w->windowType() != Qt::SubWindow)
77  w = w->parentWidget();
78  return w;
79 }
QWidget * parentWidget() const
Returns the parent of this widget, or 0 if it does not have any parent widget.
Definition: qwidget.h:1035
bool isWindow() const
Returns true if the widget is an independent window, otherwise returns false.
Definition: qwidget.h:945
Qt::WindowType windowType() const
Returns the window type of this widget.
Definition: qwidget.h:937