src/gui/widgets/qabstractscrollarea.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    50 
    50 
    51 QT_MODULE(Gui)
    51 QT_MODULE(Gui)
    52 
    52 
    53 #ifndef QT_NO_SCROLLAREA
    53 #ifndef QT_NO_SCROLLAREA
    54 
    54 
       
    55 class QMargins;
    55 class QScrollBar;
    56 class QScrollBar;
    56 class QAbstractScrollAreaPrivate;
    57 class QAbstractScrollAreaPrivate;
    57 
    58 
    58 class Q_GUI_EXPORT QAbstractScrollArea : public QFrame
    59 class Q_GUI_EXPORT QAbstractScrollArea : public QFrame
    59 {
    60 {
    93     void setupViewport(QWidget *viewport);
    94     void setupViewport(QWidget *viewport);
    94 
    95 
    95 protected:
    96 protected:
    96     QAbstractScrollArea(QAbstractScrollAreaPrivate &dd, QWidget *parent = 0);
    97     QAbstractScrollArea(QAbstractScrollAreaPrivate &dd, QWidget *parent = 0);
    97     void setViewportMargins(int left, int top, int right, int bottom);
    98     void setViewportMargins(int left, int top, int right, int bottom);
       
    99     void setViewportMargins(const QMargins &margins);
    98 
   100 
    99     bool event(QEvent *);
   101     bool event(QEvent *);
   100     virtual bool viewportEvent(QEvent *);
   102     virtual bool viewportEvent(QEvent *);
   101 
   103 
   102     void resizeEvent(QResizeEvent *);
   104     void resizeEvent(QResizeEvent *);