Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/kernel/qwidget_p.h

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    115115class QStyle;
    116116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
    117159struct QTLWExtra {
    118160    // *************************** Cross-platform variables *****************************
     
    121163    QIcon *icon; // widget icon
    122164    QPixmap *iconPixmap;
    123     QWidgetBackingStore *backingStore;
     165    QWidgetBackingStorebackingStore;
    124166    QWindowSurface *windowSurface;
    125167    QPainter *sharedPainter;
     
    163205#endif
    164206#elif defined(Q_WS_WIN) // <--------------------------------------------------------- WIN
     207
    165208    HICON winIconBig; // internal big Windows icon
    166209    HICON winIconSmall; // internal small Windows icon
     
    174217    IconRef windowIcon; // the current window icon, if set with setWindowIcon_sys.
    175218    quint32 savedWindowAttributesFromMaximized; // Saved attributes from when the calling updateMaximizeButton_sys()
     219
     220
     221
     222
     223
     224
     225
     226
    176227#elif defined(Q_WS_QWS) // <--------------------------------------------------------- QWS
    177228#ifndef QT_NO_QWS_MANAGER
     
    180231#elif defined(Q_OS_SYMBIAN)
    181232    uint inExpose : 1; // Prevents drawing recursion
     233
    182234#elif defined(Q_WS_PM)
    183235    HWND fId;
     
    396448    void render_helper(QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion,
    397449                       QWidget::RenderFlags renderFlags);
     450
     451
    398452    void drawWidget(QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags,
    399453                    QPainter *sharedPainter = 0, QWidgetBackingStore *backingStore = 0);
     
    502556    bool setMaximumSize_helper(int &maxw, int &maxh);
    503557    void setConstraints_sys();
     558
    504559    QWidget *childAt_helper(const QPoint &, bool) const;
     560
    505561    void updateGeometry_helper(bool forceUpdate);
    506562
     
    508564    void setLayoutItemMargins(int left, int top, int right, int bottom);
    509565    void setLayoutItemMargins(QStyle::SubElement element, const QStyleOption *opt = 0);
     566
     567
     568
     569
     570
    510571
    511572    QInputContext *inputContext() const;
     
    685746    QList<QAction*> actions;
    686747#endif
     748
    687749    QMap<Qt::GestureType, Qt::GestureFlags> gestureContext;
     750
    688751
    689752    // Bit fields.
    690     uint high_attributes[3]; // the low ones are in QWidget::widget_attributes
     753    uint high_attributes[]; // the low ones are in QWidget::widget_attributes
    691754    QPalette::ColorRole fg_role : 8;
    692755    QPalette::ColorRole bg_role : 8;
     
    698761    uint isGLWidget : 1;
    699762    uint usesDoubleBufferedGLContext : 1;
     763
     764
     765
    700766
    701767    // *************************** Platform specific ************************************
     
    711777    void x11UpdateIsOpaque();
    712778    bool isBackgroundInherited() const;
     779
    713780#elif defined(Q_WS_PM) // <----------------------------------------------------------- PM
    714781    uint noPaintOnScreen : 1; // see qwidget_pm.cpp ::paintEngine()
     
    722789#elif defined(Q_WS_WIN) // <--------------------------------------------------------- WIN
    723790    uint noPaintOnScreen : 1; // see qwidget_win.cpp ::paintEngine()
     791
    724792    uint nativeGesturePanEnabled : 1;
    725 
     793#endif
    726794    bool shouldShowMaximizeButton();
    727795    void winUpdateIsOpaque();
     
    737805    // This is new stuff
    738806    uint needWindowChange : 1;
     807
    739808
    740809    // Each wiget keeps a list of all its child and grandchild OpenGL widgets.
     
    783852    void finishCreateWindow_sys_Carbon(OSWindowRef windowRef);
    784853#else
     854
     855
    785856    void finishCreateWindow_sys_Cocoa(void * /*NSWindow * */ windowRef);
    786857    void syncCocoaMask();
    787858    void finishCocoaMaskSetup();
     859
     860
     861
     862
     863
     864
     865
    788866#endif
    789867    void determineWindowClass();
     
    9231001}
    9241002
     1003
     1004
     1005
     1006
     1007
     1008
     1009
    9251010inline QWidgetBackingStore *QWidgetPrivate::maybeBackingStore() const
    9261011{
    9271012    Q_Q(const QWidget);
    9281013    QTLWExtra *x = q->window()->d_func()->maybeTopData();
    929     return x ? x->backingStore : 0;
     1014    return x ? x->backingStore : 0;
    9301015}
    9311016
Note: See TracChangeset for help on using the changeset viewer.