Qt 4.8
Static Public Functions | List of all members
QWidgetExceptionCleaner Struct Reference

Static Public Functions

static void cleanup (QWidget *that, QWidgetPrivate *d)
 

Detailed Description

Definition at line 1144 of file qwidget.cpp.

Functions

◆ cleanup()

static void QWidgetExceptionCleaner::cleanup ( QWidget that,
QWidgetPrivate d 
)
inlinestatic

Definition at line 1147 of file qwidget.cpp.

Referenced by QWidget::QWidget().

1148  {
1149 #ifdef QT_NO_EXCEPTIONS
1150  Q_UNUSED(that);
1151  Q_UNUSED(d);
1152 #else
1154  if (d->focus_next != that) {
1155  if (d->focus_next)
1156  d->focus_next->d_func()->focus_prev = d->focus_prev;
1157  if (d->focus_prev)
1158  d->focus_prev->d_func()->focus_next = d->focus_next;
1159  }
1160 #endif
1161  }
bool remove(const T &value)
Definition: qset.h:89
static QWidgetSet * allWidgets
Definition: qwidget_p.h:715
QWidget * focus_next
Definition: qwidget_p.h:701
QWidget * focus_prev
Definition: qwidget_p.h:702
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

The documentation for this struct was generated from the following file: