Ignore:
Timestamp:
Jun 30, 2011, 8:18:02 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: QWidgetPrivate: Declare inline methods as such upfront so that GCC compiler knows it and doesn't produce "redeclared without dllimport attribute after being referenced with dll linkage" warnings when they are defined inline later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qwidget_p.h

    r846 r878  
    385385    ~QWidgetPrivate();
    386386
    387     QWExtra *extraData() const;
    388     QTLWExtra *topData() const;
    389     QTLWExtra *maybeTopData() const;
    390     QPainter *sharedPainter() const;
    391     void setSharedPainter(QPainter *painter);
    392     QWidgetBackingStore *maybeBackingStore() const;
     387    inline QWExtra *extraData() const;
     388    inline QTLWExtra *topData() const;
     389    inline QTLWExtra *maybeTopData() const;
     390    inline QPainter *sharedPainter() const;
     391    inline bool pointInsideRectAndMask(const QPoint &) const;
     392    inline void setSharedPainter(QPainter *painter);
     393    inline QWidgetBackingStore *maybeBackingStore() const;
     394
    393395    void init(QWidget *desktopWidget, Qt::WindowFlags f);
    394396    void create_sys(WId window, bool initializeWindow, bool destroyOldWindow);
     
    556558    bool setMaximumSize_helper(int &maxw, int &maxh);
    557559    void setConstraints_sys();
    558     bool pointInsideRectAndMask(const QPoint &) const;
    559560    QWidget *childAt_helper(const QPoint &, bool) const;
    560561    QWidget *childAtRecursiveHelper(const QPoint &p, bool, bool includeFrame = false) const;
     
    781782    uint noPaintOnScreen : 1; // see qwidget_pm.cpp ::paintEngine()
    782783
    783     HWND frameWinId() const
     784    inline HWND frameWinId() const
    784785    { return maybeTopData() && maybeTopData()->fId != NULLHANDLE ?
    785786             maybeTopData()->fId : data.winid; }
Note: See TracChangeset for help on using the changeset viewer.