bool QApplicationPrivate::animate_tooltip = false;
bool QApplicationPrivate::fade_tooltip = false;
bool QApplicationPrivate::animate_toolbox = false;
-bool QApplicationPrivate::widgetCount = false;
static bool force_reverse = false;
} else if (qstrcmp(argv[i], "-reverse") == 0) {
force_reverse = true;
QApplication::setLayoutDirection(Qt::RightToLeft);
- } else if (qstrcmp(argv[i], "-widgetcount") == 0) {
- widgetCount = true;
} else if (qstrcmp(argv[i], "-graphicssystem") == 0 && i < argc - 1) {
graphics_system_name = QString::fromLocal8Bit(argv[++i]);
} else {
\o -session= \e session, restores the application from an earlier
\l{Session Management}{session}.
\o -session \e session, is the same as listed above.
- \o -widgetcount, prints debug message at the end about number of
- widgets left undestroyed and maximum number of widgets existed at
- the same time
\o -reverse, sets the application's layout direction to
Qt::RightToLeft
\o -graphicssystem, sets the backend to be used for on-screen widgets
qt_cleanup();
- if (QApplicationPrivate::widgetCount)
- qDebug("Widgets left: %i Max widgets: %i \n", QWidgetPrivate::instanceCounter, QWidgetPrivate::maxInstances);
#ifndef QT_NO_SESSIONMANAGER
delete d->session_manager;
d->session_manager = 0;
QApplicationPrivate::animate_combo = false;
QApplicationPrivate::animate_tooltip = false;
QApplicationPrivate::fade_tooltip = false;
- QApplicationPrivate::widgetCount = false;
// trigger unregistering of QVariant's GUI types
qUnregisterGuiVariant();
q->setAttribute(Qt::WA_PendingMoveEvent);
q->setAttribute(Qt::WA_PendingResizeEvent);
- if (++QWidgetPrivate::instanceCounter > QWidgetPrivate::maxInstances)
- QWidgetPrivate::maxInstances = QWidgetPrivate::instanceCounter;
-
if (QApplication::testAttribute(Qt::AA_ImmediateWidgetCreation))
q->create();
} QT_CATCH(...) {
// if this fails we can't do anything about it but at least we are not allowed to throw.
}
- --QWidgetPrivate::instanceCounter;
if (QWidgetPrivate::allWidgets) // might have been deleted by ~QApplication
QWidgetPrivate::allWidgets->remove(this);
}
}
-int QWidgetPrivate::instanceCounter = 0; // Current number of widget instances
-int QWidgetPrivate::maxInstances = 0; // Maximum number of widget instances
-
void QWidgetPrivate::setWinId(WId id) // set widget identifier
{
Q_Q(QWidget);