equal
deleted
inserted
replaced
1485 --QWidgetPrivate::instanceCounter; |
1485 --QWidgetPrivate::instanceCounter; |
1486 |
1486 |
1487 if (QWidgetPrivate::allWidgets) // might have been deleted by ~QApplication |
1487 if (QWidgetPrivate::allWidgets) // might have been deleted by ~QApplication |
1488 QWidgetPrivate::allWidgets->remove(this); |
1488 QWidgetPrivate::allWidgets->remove(this); |
1489 |
1489 |
1490 QEvent e(QEvent::Destroy); |
1490 QT_TRY { |
1491 QCoreApplication::sendEvent(this, &e); |
1491 QEvent e(QEvent::Destroy); |
|
1492 QCoreApplication::sendEvent(this, &e); |
|
1493 } QT_CATCH(const std::exception&) { |
|
1494 // if this fails we can't do anything about it but at least we are not allowed to throw. |
|
1495 } |
1492 } |
1496 } |
1493 |
1497 |
1494 int QWidgetPrivate::instanceCounter = 0; // Current number of widget instances |
1498 int QWidgetPrivate::instanceCounter = 0; // Current number of widget instances |
1495 int QWidgetPrivate::maxInstances = 0; // Maximum number of widget instances |
1499 int QWidgetPrivate::maxInstances = 0; // Maximum number of widget instances |
1496 |
1500 |