#cmakedefine QT_NO_USING_NAMESPACE
#cmakedefine QT_NO_ACCESSIBILITY
#cmakedefine QT_NO_ACTION
-#cmakedefine QT_NO_ACTIONS
#cmakedefine QT_NO_ANIMATION
#cmakedefine QT_NO_BACKINGSTORE
#cmakedefine QT_NO_BEARERMANAGEMENT
Q_ASSERT_X(q, "QMdiSubWindowPrivate::createSystemMenu",
"You can NOT call this function before QMdiSubWindow's ctor");
systemMenu = new QMenu(q);
+#ifndef QT_NO_ACTION
const QStyle *style = q->style();
addToSystemMenu(RestoreAction, QMdiSubWindow::tr("&Restore"), SLOT(showNormal()));
actions[RestoreAction]->setIcon(style->standardIcon(QStyle::SP_TitleBarNormalButton, 0, q));
#if !defined(QT_NO_SHORTCUT)
actions[CloseAction]->setShortcuts(QKeySequence::Close);
#endif
+#endif // QT_NO_ACTION
updateActions();
}
#endif
Qt::FocusReason focusInReason;
OperationInfoMap operationMap;
QPointer<QMenu> systemMenu;
-#ifndef QT_NO_ACTIONS
+#ifndef QT_NO_ACTION
QPointer<QAction> actions[NumWindowStateActions];
#endif
QMdiSubWindow::SubWindowOptions options;