Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1897

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QAbstractScrollArea" doc="/**
&lt;p&gt;The &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; widget provides a scrolling area with on-demand scroll bars.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; is a low-level abstraction of a scrolling area. The area provides a central widget called the viewport, in which the contents of the area is to be scrolled (i.e, the visible parts of the contents are rendered in the viewport).&lt;/p&gt;
&lt;p&gt;Next to the viewport is a vertical scroll bar, and below is a horizontal scroll bar. When all of the area contents fits in the viewport, each scroll bar can be either visible or hidden depending on the scroll bar's Qt::ScrollBarPolicy. When a scroll bar is hidden, the viewport expands in order to cover all available space. When a scroll bar becomes visible again, the viewport shrinks in order to make room for the scroll bar.&lt;/p&gt;
&lt;p&gt;It is possible to reserve a margin area around the viewport, see &lt;a href=&quot;QAbstractScrollArea.html#setViewportMargins(int, int, int, int)&quot;&gt;&lt;tt&gt;setViewportMargins&lt;/tt&gt;&lt;/a&gt;. The feature is mostly used to place a &lt;a href=&quot;QHeaderView.html&quot;&gt;&lt;tt&gt;QHeaderView&lt;/tt&gt;&lt;/a&gt; widget above or beside the scrolling area.&lt;/p&gt;
&lt;p&gt;When inheriting &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt;, you need to do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Control the scroll bars by setting their range, value, page step, and tracking their movements.&lt;/li&gt;
&lt;li&gt;Draw the contents of the area in the viewport according to the values of the scroll bars.&lt;/li&gt;
&lt;li&gt;Handle events received by the viewport in &lt;a href=&quot;QAbstractScrollArea.html#viewportEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;viewportEvent&lt;/tt&gt;&lt;/a&gt; - notably resize events.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With a scroll bar policy of Qt::ScrollBarAsNeeded (the default), &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; shows scroll bars when they provide a non-zero scrolling range, and hides them otherwise.&lt;/p&gt;
&lt;p&gt;The scroll bars and viewport should be updated whenever the viewport receives a resize event or the size of the contents changes. The viewport also needs to be updated when the scroll bars values change. The initial values of the scroll bars are often set when the area receives new contents.&lt;/p&gt;
&lt;p&gt;We give a simple example, in which we have implemented a scroll area that can scroll any &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;. We make the widget a child of the viewport; this way, we do not have to calculate which part of the widget to draw but can simply move the widget with QWidget::move(). When the area contents or the viewport size changes, we do the following:&lt;/p&gt;
&lt;pre&gt;        QSize areaSize = viewport()-&amp;gt;size();
        QSize  widgetSize = widget-&amp;gt;size();

        verticalScrollBar()-&amp;gt;setPageStep(widgetSize.height());
        horizontalScrollBar()-&amp;gt;setPageStep(widgetSize.width());
        verticalScrollBar()-&amp;gt;setRange(0, widgetSize.height() - areaSize.height());
        horizontalScrollBar()-&amp;gt;setRange(0, widgetSize.width() - areaSize.width());
        updateWidgetPosition();&lt;/pre&gt;
&lt;p&gt;When the scroll bars change value, we need to update the widget position, i.e&amp;#x2e;, find the part of the widget that is to be drawn in the viewport:&lt;/p&gt;
&lt;pre&gt;        int hvalue = horizontalScrollBar()-&amp;gt;value();
        int vvalue = verticalScrollBar()-&amp;gt;value();
        QPoint topLeft = viewport()-&amp;gt;rect().topLeft();

        widget-&amp;gt;move(topLeft.x() - hvalue, topLeft.y() - vvalue);&lt;/pre&gt;
&lt;p&gt;In order to track scroll bar movements, reimplement the virtual function &lt;a href=&quot;QAbstractScrollArea.html#scrollContentsBy(int, int)&quot;&gt;&lt;tt&gt;scrollContentsBy&lt;/tt&gt;&lt;/a&gt;. In order to fine-tune scrolling behavior, connect to a scroll bar's QAbstractSlider::actionTriggered() signal and adjust the &lt;tt&gt;QAbstractSlider::sliderPosition&lt;/tt&gt; as you wish.&lt;/p&gt;
&lt;p&gt;For convenience, &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; makes all viewport events available in the virtual &lt;a href=&quot;QAbstractScrollArea.html#viewportEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;viewportEvent&lt;/tt&gt;&lt;/a&gt; handler. &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;'s specialized handlers are remapped to viewport events in the cases where this makes sense. The remapped specialized handlers are: &lt;a href=&quot;QAbstractScrollArea.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#wheelEvent(com.trolltech.qt.gui.QWheelEvent)&quot;&gt;&lt;tt&gt;wheelEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dragEnterEvent(com.trolltech.qt.gui.QDragEnterEvent)&quot;&gt;&lt;tt&gt;dragEnterEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dragMoveEvent(com.trolltech.qt.gui.QDragMoveEvent)&quot;&gt;&lt;tt&gt;dragMoveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dragLeaveEvent(com.trolltech.qt.gui.QDragLeaveEvent)&quot;&gt;&lt;tt&gt;dragLeaveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dropEvent(com.trolltech.qt.gui.QDropEvent)&quot;&gt;&lt;tt&gt;dropEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent)&quot;&gt;&lt;tt&gt;contextMenuEvent&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QAbstractScrollArea.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QScrollArea.html&quot;&gt;&lt;tt&gt;QScrollArea&lt;/tt&gt;&lt;/a&gt;, which inherits &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt;, provides smooth scrolling for any &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; (i.e&amp;#x2e;, the widget is scrolled pixel by pixel). You only need to subclass &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; if you need more specialized behavior. This is, for instance, true if the entire contents of the area is not suitable for being drawn on a &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; or if you do not want smooth scrolling.&lt;/p&gt;

@see &lt;a href=&quot;QScrollArea.html&quot;&gt;&lt;tt&gt;QScrollArea&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QAbstractScrollArea(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a viewport.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;parent&lt;/tt&gt; arguments is sent to the &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; constructor.&lt;/p&gt;
 */"/>
    <method name="public QAbstractScrollArea()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void addScrollBarWidget(com.trolltech.qt.gui.QWidget widget, com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;widget&lt;/tt&gt; as a scroll bar widget in the location specified by &lt;tt&gt;alignment&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Scroll bar widgets are shown next to the horizontal or vertical scroll bar, and can be placed on either side of it. If you want the scroll bar widgets to be always visible, set the scrollBarPolicy for the corresponding scroll bar to &lt;tt&gt;AlwaysOn&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;alignment&lt;/tt&gt; must be one of Qt::Alignleft and Qt::AlignRight, which maps to the horizontal scroll bar, or Qt::AlignTop and Qt::AlignBottom, which maps to the vertical scroll bar.&lt;/p&gt;
&lt;p&gt;A scroll bar widget can be removed by either re-parenting the widget or deleting it. It's also possible to hide a widget with QWidget::hide()&lt;/p&gt;
&lt;p&gt;The scroll bar widget will be resized to fit the scroll bar geometry for the current style. The following describes the case for scroll bar widgets on the horizontal scroll bar:&lt;/p&gt;
&lt;p&gt;The height of the widget will be set to match the height of the scroll bar. To control the width of the widget, use QWidget::setMinimumWidth and QWidget::setMaximumWidth, or implement QWidget::sizeHint() and set a horizontal size policy. If you want a square widget, call QStyle::pixelMetric(QStyle::PM_ScrollBarExtent) and set the width to this value.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#scrollBarWidgets(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;scrollBarWidgets&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget cornerWidget()" doc="/**
&lt;p&gt;Returns the widget in the corner between the two scroll bars.&lt;/p&gt;
&lt;p&gt;By default, no corner widget is present.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setCornerWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCornerWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QScrollBar horizontalScrollBar()" doc="/**
&lt;p&gt;Returns the horizontal scroll bar.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setHorizontalScrollBar(com.trolltech.qt.gui.QScrollBar)&quot;&gt;&lt;tt&gt;setHorizontalScrollBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBarPolicy()&quot;&gt;&lt;tt&gt;horizontalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#verticalScrollBar()&quot;&gt;&lt;tt&gt;verticalScrollBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ScrollBarPolicy horizontalScrollBarPolicy()" doc="/**
&lt;p&gt;Returns the policy for the horizontal scroll bar.&lt;/p&gt;
&lt;p&gt;The default policy is Qt::ScrollBarAsNeeded.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setHorizontalScrollBarPolicy(com.trolltech.qt.core.Qt.ScrollBarPolicy)&quot;&gt;&lt;tt&gt;setHorizontalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#verticalScrollBarPolicy()&quot;&gt;&lt;tt&gt;verticalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize maximumViewportSize()" doc="/**
&lt;p&gt;Returns the size of the viewport as if the scroll bars had no valid scrolling range.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QWidget&gt; scrollBarWidgets(com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Returns a list of the currently set scroll bar widgets. &lt;tt&gt;alignment&lt;/tt&gt; can be any combination of the four location flags.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#addScrollBarWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;addScrollBarWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCornerWidget(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Sets the widget in the corner between the two scroll bars to be &lt;tt&gt;widget&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;You will probably also want to set at least one of the scroll bar modes to &lt;tt&gt;AlwaysOn&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Passing 0 shows no widget in the corner.&lt;/p&gt;
&lt;p&gt;Any previous corner widget is hidden.&lt;/p&gt;
&lt;p&gt;You may call &lt;a href=&quot;QAbstractScrollArea.html#setCornerWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCornerWidget&lt;/tt&gt;&lt;/a&gt; with the same widget at different times.&lt;/p&gt;
&lt;p&gt;All widgets set here will be deleted by the scroll area when it is destroyed unless you separately reparent the widget after setting some other corner widget (or 0).&lt;/p&gt;
&lt;p&gt;Any &lt;i&gt;newly&lt;/i&gt; set widget should have no current parent.&lt;/p&gt;
&lt;p&gt;By default, no corner widget is present.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#cornerWidget()&quot;&gt;&lt;tt&gt;cornerWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBarPolicy()&quot;&gt;&lt;tt&gt;horizontalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBarPolicy()&quot;&gt;&lt;tt&gt;horizontalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHorizontalScrollBar(com.trolltech.qt.gui.QScrollBar scrollbar)" doc="/**
&lt;p&gt;Replaces the existing horizontal scroll bar with &lt;tt&gt;scrollbar&lt;/tt&gt;, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; already provides horizontal and vertical scroll bars by default. You can call this function to replace the default horizontal scroll bar with your own custom scroll bar.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBar()&quot;&gt;&lt;tt&gt;horizontalScrollBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#setVerticalScrollBar(com.trolltech.qt.gui.QScrollBar)&quot;&gt;&lt;tt&gt;setVerticalScrollBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHorizontalScrollBarPolicy(com.trolltech.qt.core.Qt.ScrollBarPolicy arg__1)" doc="/**
&lt;p&gt;Sets the policy for the horizontal scroll bar to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default policy is Qt::ScrollBarAsNeeded.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBarPolicy()&quot;&gt;&lt;tt&gt;horizontalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#verticalScrollBarPolicy()&quot;&gt;&lt;tt&gt;verticalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setVerticalScrollBar(com.trolltech.qt.gui.QScrollBar scrollbar)" doc="/**
&lt;p&gt;Replaces the existing vertical scroll bar with &lt;tt&gt;scrollbar&lt;/tt&gt;, and sets all the former scroll bar's slider properties on the new scroll bar. The former scroll bar is then deleted.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; already provides vertical and horizontal scroll bars by default. You can call this function to replace the default vertical scroll bar with your own custom scroll bar.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#verticalScrollBar()&quot;&gt;&lt;tt&gt;verticalScrollBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#setHorizontalScrollBar(com.trolltech.qt.gui.QScrollBar)&quot;&gt;&lt;tt&gt;setHorizontalScrollBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setVerticalScrollBarPolicy(com.trolltech.qt.core.Qt.ScrollBarPolicy arg__1)" doc="/**
&lt;p&gt;Sets the policy for the vertical scroll bar to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default policy is Qt::ScrollBarAsNeeded.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#verticalScrollBarPolicy()&quot;&gt;&lt;tt&gt;verticalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBarPolicy()&quot;&gt;&lt;tt&gt;horizontalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setViewport(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Sets the viewport to be the given &lt;tt&gt;widget&lt;/tt&gt;. The &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; will take ownership of the given &lt;tt&gt;widget&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;widget&lt;/tt&gt; is 0, &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; will assign a new &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; instance for the viewport.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void setViewportMargins(int left, int top, int right, int bottom)" doc="/**
&lt;p&gt;Sets the margins around the scrolling area to &lt;tt&gt;left&lt;/tt&gt;, &lt;tt&gt;top&lt;/tt&gt;, &lt;tt&gt;right&lt;/tt&gt; and &lt;tt&gt;bottom&lt;/tt&gt;. This is useful for applications such as spreadsheets with &amp;quot;locked&amp;quot; rows and columns. The marginal space is is left blank; put widgets in the unused area.&lt;/p&gt;
&lt;p&gt;Note that this function is called frequently by &lt;a href=&quot;QTreeView.html&quot;&gt;&lt;tt&gt;QTreeView&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTableView.html&quot;&gt;&lt;tt&gt;QTableView&lt;/tt&gt;&lt;/a&gt; calls this function frequently, so their margins must be kept by subclasses.&lt;/p&gt;
&lt;p&gt;By default all margins are zero.&lt;/p&gt;
 */"/>
    <method name="protected void setupViewport(com.trolltech.qt.gui.QWidget viewport)" doc="/**
&lt;p&gt;This slot is called by &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; after &lt;a href=&quot;QAbstractScrollArea.html#setViewport(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;viewport&lt;/tt&gt;) has been called. Reimplement this function in a subclass of &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; to initialize the new &lt;tt&gt;viewport&lt;/tt&gt; before it is used.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setViewport(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QScrollBar verticalScrollBar()" doc="/**
&lt;p&gt;Returns the vertical scroll bar.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setVerticalScrollBar(com.trolltech.qt.gui.QScrollBar)&quot;&gt;&lt;tt&gt;setVerticalScrollBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#verticalScrollBarPolicy()&quot;&gt;&lt;tt&gt;verticalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBar()&quot;&gt;&lt;tt&gt;horizontalScrollBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ScrollBarPolicy verticalScrollBarPolicy()" doc="/**
&lt;p&gt;Returns the policy for the vertical scroll bar.&lt;/p&gt;
&lt;p&gt;The default policy is Qt::ScrollBarAsNeeded.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setVerticalScrollBarPolicy(com.trolltech.qt.core.Qt.ScrollBarPolicy)&quot;&gt;&lt;tt&gt;setVerticalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractScrollArea.html#horizontalScrollBarPolicy()&quot;&gt;&lt;tt&gt;horizontalScrollBarPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget viewport()" doc="/**
&lt;p&gt;Returns the viewport widget.&lt;/p&gt;
&lt;p&gt;Use the QScrollArea::widget() function to retrieve the contents of the viewport widget.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractScrollArea.html#setViewport(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setViewport&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QScrollArea::widget&lt;/tt&gt; */"/>
    <method name="protected void contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive context menu events for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget. The event is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::contextMenuEvent&lt;/tt&gt; */"/>
    <method name="protected void dragEnterEvent(com.trolltech.qt.gui.QDragEnterEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive drag enter events (passed in &lt;tt&gt;arg__1&lt;/tt&gt;), for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget.&lt;/p&gt;

@see &lt;tt&gt;QWidget::dragEnterEvent&lt;/tt&gt; */"/>
    <method name="protected void dragLeaveEvent(com.trolltech.qt.gui.QDragLeaveEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive drag leave events (passed in &lt;tt&gt;arg__1&lt;/tt&gt;), for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget.&lt;/p&gt;

@see &lt;tt&gt;QWidget::dragLeaveEvent&lt;/tt&gt; */"/>
    <method name="protected void dragMoveEvent(com.trolltech.qt.gui.QDragMoveEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive drag move events (passed in &lt;tt&gt;arg__1&lt;/tt&gt;), for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget.&lt;/p&gt;

@see &lt;tt&gt;QWidget::dragMoveEvent&lt;/tt&gt; */"/>
    <method name="protected void dropEvent(com.trolltech.qt.gui.QDropEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive drop events (passed in &lt;tt&gt;arg__1&lt;/tt&gt;), for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget.&lt;/p&gt;

@see &lt;tt&gt;QWidget::dropEvent&lt;/tt&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;tt&gt;QEvent::type&lt;/tt&gt; */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent arg__1)" doc="/**
&lt;p&gt;This function is called with key event &lt;tt&gt;arg__1&lt;/tt&gt; when key presses occur. It handles PageUp, PageDown, Up, Down, Left, and Right, and ignores all other key presses.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive mouse double click events for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget. The event is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::mouseDoubleClickEvent&lt;/tt&gt; */"/>
    <method name="protected void mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive mouse move events for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget. The event is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::mouseMoveEvent&lt;/tt&gt; */"/>
    <method name="protected void mousePressEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive mouse press events for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget. The event is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::mousePressEvent&lt;/tt&gt; */"/>
    <method name="protected void mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive mouse release events for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget. The event is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::mouseReleaseEvent&lt;/tt&gt; */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive paint events (passed in &lt;tt&gt;arg__1&lt;/tt&gt;), for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget.&lt;/p&gt;
&lt;p&gt;Note: If you open a painter, make sure to open it on the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::paintEvent&lt;/tt&gt; */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive resize events (passed in &lt;tt&gt;arg__1&lt;/tt&gt;), for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget.&lt;/p&gt;
&lt;p&gt;When &lt;a href=&quot;QAbstractScrollArea.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; is called, the viewport already has its new geometry: Its new size is accessible through the QResizeEvent::size() function, and the old size through QResizeEvent::oldSize().&lt;/p&gt;

@see &lt;tt&gt;QWidget::resizeEvent&lt;/tt&gt; */"/>
    <method name="protected void scrollContentsBy(int dx, int dy)" doc="/**
&lt;p&gt;This virtual handler is called when the scroll bars are moved by &lt;tt&gt;dx&lt;/tt&gt;, &lt;tt&gt;dy&lt;/tt&gt;, and consequently the viewport's contents should be scrolled accordingly.&lt;/p&gt;
&lt;p&gt;The default implementation simply calls &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; on the entire &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt;, subclasses can reimplement this handler for optimization purposes, or - like &lt;a href=&quot;QScrollArea.html&quot;&gt;&lt;tt&gt;QScrollArea&lt;/tt&gt;&lt;/a&gt; - to move a contents widget. The parameters &lt;tt&gt;dx&lt;/tt&gt; and &lt;tt&gt;dy&lt;/tt&gt; are there for convenience, so that the class knows how much should be scrolled (useful e.g&amp;#x2e; when doing pixel-shifts). You may just as well ignore these values and scroll directly to the position the scroll bars indicate.&lt;/p&gt;
&lt;p&gt;Calling this function in order to scroll programmatically is an error, use the scroll bars instead (e.g&amp;#x2e; by calling QScrollBar::setValue() directly).&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected boolean viewportEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;The main event handler for the scrolling area (the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget). It handles the &lt;tt&gt;arg__1&lt;/tt&gt; specified, and can be called by subclasses to provide reasonable default behavior.&lt;/p&gt;
&lt;p&gt;Returns true to indicate to the event system that the event has been handled, and needs no further processing; otherwise returns false to indicate that the event should be propagated further.&lt;/p&gt;
&lt;p&gt;You can reimplement this function in a subclass, but we recommend using one of the specialized event handlers instead.&lt;/p&gt;
&lt;p&gt;Specialised handlers for viewport events are: &lt;a href=&quot;QAbstractScrollArea.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#wheelEvent(com.trolltech.qt.gui.QWheelEvent)&quot;&gt;&lt;tt&gt;wheelEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dragEnterEvent(com.trolltech.qt.gui.QDragEnterEvent)&quot;&gt;&lt;tt&gt;dragEnterEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dragMoveEvent(com.trolltech.qt.gui.QDragMoveEvent)&quot;&gt;&lt;tt&gt;dragMoveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dragLeaveEvent(com.trolltech.qt.gui.QDragLeaveEvent)&quot;&gt;&lt;tt&gt;dragLeaveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#dropEvent(com.trolltech.qt.gui.QDropEvent)&quot;&gt;&lt;tt&gt;dropEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractScrollArea.html#contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent)&quot;&gt;&lt;tt&gt;contextMenuEvent&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QAbstractScrollArea.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="protected void wheelEvent(com.trolltech.qt.gui.QWheelEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive wheel events for the &lt;a href=&quot;QAbstractScrollArea.html#viewport()&quot;&gt;&lt;tt&gt;viewport&lt;/tt&gt;&lt;/a&gt; widget. The event is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWidget::wheelEvent&lt;/tt&gt; */"/>
</class>