51 #include "private/qwidget_p.h" 332 #ifndef QT_NO_WHATSTHIS 389 #ifdef QT_NO_QWS_MANAGER 392 QWSManager *manager = widget->d_func()->topData()->qwsManager;
394 manager->startMove();
405 #ifdef QT_NO_QWS_MANAGER 408 QWSManager *manager = widget->d_func()->topData()->qwsManager;
410 manager->startResize();
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual int regionAt(const QWidget *w, const QPoint &point)
Returns the type of the first region of the specified top level widget containing the given point...
void setDisabled(bool b)
This is a convenience function for the enabled property, that is useful for signals–slots connection...
static void startMove(QWidget *widget)
Starts to move the given top level widget by making its Title region active and grabbing the mouse in...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
virtual QRegion region(const QWidget *w, const QRect &rect, int decorationRegion=All)=0
Implement this function to return the region specified by decorationRegion for the given top level wi...
virtual void buildSysMenu(QWidget *widget, QMenu *menu)
Builds the system menu for the given top level widget, adding Restore, Move, Size, Minimize, Maximize and Close actions to the given menu.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static void startResize(QWidget *widget)
Starts to resize the given top level widget by making its BottomRight region active and grabbing the ...
bool contains(const QPoint &p) const
Returns true if the region contains the point p; otherwise returns false.
virtual void regionDoubleClicked(QWidget *widget, int region)
Handles the event that the specified region in the given top level widget is activated by a double cl...
static bool inWhatsThisMode()
Returns true if the user interface is in "What's This?" mode; otherwise returns false.
The QRegion class specifies a clip region for a painter.
The QPoint class defines a point in the plane using integer precision.
virtual void regionClicked(QWidget *widget, int region)
Handles the event that the specified region in the given top level widget is activated by a single cl...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
The QAction class provides an abstract user interface action that can be inserted into widgets...
static void enterWhatsThisMode()
This function switches the user interface into "What's This?" mode.
static void leaveWhatsThisMode()
If the user interface is in "What's This?" mode, this function switches back to normal mode; otherwis...
void menuTriggered(QWidget *widget, QAction *action)
This function is called whenever an action in a top level widget's menu is triggered, and simply calls the regionClicked() function passing the widget and action parameters as arguments.