src/gui/kernel/qwidget_p.h
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 19 fcece45ef507
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   171     quint32 savedWindowAttributesFromMaximized; // Saved attributes from when the calling updateMaximizeButton_sys()
   171     quint32 savedWindowAttributesFromMaximized; // Saved attributes from when the calling updateMaximizeButton_sys()
   172 #elif defined(Q_WS_QWS) // <--------------------------------------------------------- QWS
   172 #elif defined(Q_WS_QWS) // <--------------------------------------------------------- QWS
   173 #ifndef QT_NO_QWS_MANAGER
   173 #ifndef QT_NO_QWS_MANAGER
   174     QWSManager *qwsManager;
   174     QWSManager *qwsManager;
   175 #endif
   175 #endif
       
   176 #elif defined(Q_OS_SYMBIAN)
       
   177     uint inExpose : 1; // Prevents drawing recursion
   176 #endif
   178 #endif
   177 };
   179 };
   178 
   180 
   179 struct QWExtra {
   181 struct QWExtra {
   180     // *************************** Cross-platform variables *****************************
   182     // *************************** Cross-platform variables *****************************
   679     uint dirtyOpaqueChildren : 1;
   681     uint dirtyOpaqueChildren : 1;
   680     uint isOpaque : 1;
   682     uint isOpaque : 1;
   681     uint inDirtyList : 1;
   683     uint inDirtyList : 1;
   682     uint isScrolled : 1;
   684     uint isScrolled : 1;
   683     uint isMoved : 1;
   685     uint isMoved : 1;
       
   686     uint isGLWidget : 1;
   684     uint usesDoubleBufferedGLContext : 1;
   687     uint usesDoubleBufferedGLContext : 1;
   685 
   688 
   686     // *************************** Platform specific ************************************
   689     // *************************** Platform specific ************************************
   687 #if defined(Q_WS_X11) // <----------------------------------------------------------- X11
   690 #if defined(Q_WS_X11) // <----------------------------------------------------------- X11
   688     QX11Info xinfo;
   691     QX11Info xinfo;
   710     void registerTouchWindow();
   713     void registerTouchWindow();
   711     void winSetupGestures();
   714     void winSetupGestures();
   712 #elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC
   715 #elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC
   713     // This is new stuff
   716     // This is new stuff
   714     uint needWindowChange : 1;
   717     uint needWindowChange : 1;
   715     uint isGLWidget : 1;
       
   716 
   718 
   717     // Each wiget keeps a list of all its child and grandchild OpenGL widgets.
   719     // Each wiget keeps a list of all its child and grandchild OpenGL widgets.
   718     // This list is used to update the gl context whenever a parent and a granparent
   720     // This list is used to update the gl context whenever a parent and a granparent
   719     // moves, and also to check for intersections with gl widgets within the window
   721     // moves, and also to check for intersections with gl widgets within the window
   720     // when a widget moves.
   722     // when a widget moves.