equal
deleted
inserted
replaced
735 /* |
735 /* |
736 Posts updates to all child and grandchild OpenGL widgets for the given widget. |
736 Posts updates to all child and grandchild OpenGL widgets for the given widget. |
737 */ |
737 */ |
738 static void qt_mac_update_child_gl_widgets(QWidget *widget) |
738 static void qt_mac_update_child_gl_widgets(QWidget *widget) |
739 { |
739 { |
740 if (widget->isWindow()) |
|
741 return; |
|
742 |
|
743 // Update all OpenGL child widgets for the given widget. |
740 // Update all OpenGL child widgets for the given widget. |
744 QList<QWidgetPrivate::GlWidgetInfo> &glWidgets = qt_widget_private(widget)->glWidgets; |
741 QList<QWidgetPrivate::GlWidgetInfo> &glWidgets = qt_widget_private(widget)->glWidgets; |
745 QList<QWidgetPrivate::GlWidgetInfo>::iterator end = glWidgets.end(); |
742 QList<QWidgetPrivate::GlWidgetInfo>::iterator end = glWidgets.end(); |
746 QList<QWidgetPrivate::GlWidgetInfo>::iterator it = glWidgets.begin(); |
743 QList<QWidgetPrivate::GlWidgetInfo>::iterator it = glWidgets.begin(); |
747 |
744 |