diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/ntqscrollview.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/ntqscrollview.html')
-rw-r--r-- | doc/html/ntqscrollview.html | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/doc/html/ntqscrollview.html b/doc/html/ntqscrollview.html index e6ebd59f8..ac4199414 100644 --- a/doc/html/ntqscrollview.html +++ b/doc/html/ntqscrollview.html @@ -258,7 +258,7 @@ child widgets in the view. <p> Note that the widget you see in the scrolled area is the viewport() widget, not the TQScrollView itself. So to turn mouse tracking on, for example, use viewport()->setMouseTracking(TRUE). -<p> To enable drag-and-drop, you would <a href="ntqwidget.html#setAcceptDrops">setAcceptDrops</a>(TRUE) on the +<p> To enable drag-and-drop, you would <a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>(TRUE) on the TQScrollView (because drag-and-drop events propagate to the parent). But to work out the logical position in the view, you would need to map the drop co-ordinate from being relative to the @@ -266,7 +266,7 @@ TQScrollView to being relative to the contents; use the function <a href="#viewportToContents">viewportToContents</a>() for this. <p> To handle mouse events on the scrolling area, subclass scrollview as you would subclass other widgets, but rather than -reimplementing <a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>(), reimplement +reimplementing <a href="tqwidget.html#mousePressEvent">mousePressEvent</a>(), reimplement <a href="#contentsMousePressEvent">contentsMousePressEvent</a>() instead. The contents specific event handlers provide translated events in the coordinate system of the scrollview. If you reimplement mousePressEvent(), you'll get @@ -275,7 +275,7 @@ such part is the "corner" (if you don't set a <a href="#cornerWidget">cornerWidg the frame; everything else is covered up by the viewport, clipper or scroll bars. <p> When you construct a TQScrollView, some of the widget flags apply -to the <a href="#viewport">viewport</a>() instead of being sent to the <a href="ntqwidget.html">TQWidget</a> constructor +to the <a href="#viewport">viewport</a>() instead of being sent to the <a href="tqwidget.html">TQWidget</a> constructor for the TQScrollView. This applies to <a href="ntqt.html#WidgetFlags-enum">WNoAutoErase</a>, <a href="ntqt.html#WidgetFlags-enum">WStaticContents</a>, and <a href="ntqt.html#WidgetFlags-enum">WPaintClever</a>. See <a href="ntqt.html#WidgetFlags-enum">TQt::WidgetFlags</a> for documentation about these flags. Here are some examples: <p> <ul> @@ -328,7 +328,7 @@ changes to <a href="#ResizePolicy-enum">Manual</a> if you resize the contents wi <li><tt>TQScrollView::AutoOne</tt> - if there is only one child widget the contents stays the size of that widget. Otherwise the behavior is undefined. <li><tt>TQScrollView::AutoOneFit</tt> - if there is only one child widget the contents stays -the size of that widget's <a href="ntqwidget.html#sizeHint">sizeHint</a>(). If the scrollview is resized +the size of that widget's <a href="tqwidget.html#sizeHint">sizeHint</a>(). If the scrollview is resized larger than the child's sizeHint(), the child will be resized to fit. If there is more than one child, the behavior is undefined. </ul><p> @@ -345,7 +345,7 @@ too large to fit and not otherwise. This is the default. independent.) <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQScrollView"></a>TQScrollView::TQScrollView ( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) +<h3 class=fn><a name="TQScrollView"></a>TQScrollView::TQScrollView ( <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) </h3> Constructs a TQScrollView called <em>name</em> with parent <em>parent</em> and widget flags <em>f</em>. @@ -357,7 +357,7 @@ widget flags are propagated to the parent constructor as usual. Destroys the TQScrollView. Any children added with <a href="#addChild">addChild</a>() will be deleted. -<h3 class=fn>void <a name="addChild"></a>TQScrollView::addChild ( <a href="ntqwidget.html">TQWidget</a> * child, int x = 0, int y = 0 )<tt> [virtual]</tt> +<h3 class=fn>void <a name="addChild"></a>TQScrollView::addChild ( <a href="tqwidget.html">TQWidget</a> * child, int x = 0, int y = 0 )<tt> [virtual]</tt> </h3> Inserts the widget, <em>child</em>, into the scrolled area positioned at (<em>x</em>, <em>y</em>). The position defaults to (0, 0). If the child is @@ -390,25 +390,25 @@ the area). <li> Margin 1.0 ensures that (x, y) is in the center of the the visible area. </ul> -<h3 class=fn>bool <a name="childIsVisible"></a>TQScrollView::childIsVisible ( <a href="ntqwidget.html">TQWidget</a> * child ) +<h3 class=fn>bool <a name="childIsVisible"></a>TQScrollView::childIsVisible ( <a href="tqwidget.html">TQWidget</a> * child ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Returns TRUE if <em>child</em> is visible. This is equivalent to child->isVisible(). -<h3 class=fn>int <a name="childX"></a>TQScrollView::childX ( <a href="ntqwidget.html">TQWidget</a> * child ) +<h3 class=fn>int <a name="childX"></a>TQScrollView::childX ( <a href="tqwidget.html">TQWidget</a> * child ) </h3> Returns the X position of the given <em>child</em> widget. Use this -rather than <a href="ntqwidget.html#x">TQWidget::x</a>() for widgets added to the view. +rather than <a href="tqwidget.html#x">TQWidget::x</a>() for widgets added to the view. <p> This function returns 0 if <em>child</em> has not been added to the view. -<h3 class=fn>int <a name="childY"></a>TQScrollView::childY ( <a href="ntqwidget.html">TQWidget</a> * child ) +<h3 class=fn>int <a name="childY"></a>TQScrollView::childY ( <a href="tqwidget.html">TQWidget</a> * child ) </h3> Returns the Y position of the given <em>child</em> widget. Use this -rather than <a href="ntqwidget.html#y">TQWidget::y</a>() for widgets added to the view. +rather than <a href="tqwidget.html#y">TQWidget::y</a>() for widgets added to the view. <p> This function returns 0 if <em>child</em> has not been added to the view. -<h3 class=fn><a href="ntqwidget.html">TQWidget</a> * <a name="clipper"></a>TQScrollView::clipper () const +<h3 class=fn><a href="tqwidget.html">TQWidget</a> * <a name="clipper"></a>TQScrollView::clipper () const </h3> Returns the clipper widget. Contents in the scrollview are ultimately clipped to be inside the clipper widget. @@ -418,35 +418,35 @@ ultimately clipped to be inside the clipper widget. <h3 class=fn>void <a name="contentsContextMenuEvent"></a>TQScrollView::contentsContextMenuEvent ( <a href="qcontextmenuevent.html">TQContextMenuEvent</a> * e )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#contextMenuEvent">contextMenuEvent</a>() in <em>e</em>: the mouse position is translated to +<a href="tqwidget.html#contextMenuEvent">contextMenuEvent</a>() in <em>e</em>: the mouse position is translated to be a point on the contents. <p>Example: <a href="tutorial2-06.html#x2584">chart/canvasview.cpp</a>. <h3 class=fn>void <a name="contentsDragEnterEvent"></a>TQScrollView::contentsDragEnterEvent ( <a href="qdragenterevent.html">TQDragEnterEvent</a> * )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#dragEnterEvent">dragEnterEvent</a>(): the drag position is translated to be a point +<a href="tqwidget.html#dragEnterEvent">dragEnterEvent</a>(): the drag position is translated to be a point on the contents. <p>Reimplemented in <a href="ntqtable.html#contentsDragEnterEvent">TQTable</a>. <h3 class=fn>void <a name="contentsDragLeaveEvent"></a>TQScrollView::contentsDragLeaveEvent ( <a href="qdragleaveevent.html">TQDragLeaveEvent</a> * )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#dragLeaveEvent">dragLeaveEvent</a>(): the drag position is translated to be a point +<a href="tqwidget.html#dragLeaveEvent">dragLeaveEvent</a>(): the drag position is translated to be a point on the contents. <p>Reimplemented in <a href="ntqtable.html#contentsDragLeaveEvent">TQTable</a>. <h3 class=fn>void <a name="contentsDragMoveEvent"></a>TQScrollView::contentsDragMoveEvent ( <a href="qdragmoveevent.html">TQDragMoveEvent</a> * )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#dragMoveEvent">dragMoveEvent</a>(): the drag position is translated to be a point on +<a href="tqwidget.html#dragMoveEvent">dragMoveEvent</a>(): the drag position is translated to be a point on the contents. <p>Reimplemented in <a href="ntqtable.html#contentsDragMoveEvent">TQTable</a>. <h3 class=fn>void <a name="contentsDropEvent"></a>TQScrollView::contentsDropEvent ( <a href="qdropevent.html">TQDropEvent</a> * )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#dropEvent">dropEvent</a>(): the drop position is translated to be a point on the +<a href="tqwidget.html#dropEvent">dropEvent</a>(): the drop position is translated to be a point on the contents. <p>Reimplemented in <a href="ntqtable.html#contentsDropEvent">TQTable</a>. @@ -456,7 +456,7 @@ See the <a href="ntqscrollview.html#contentsHeight-prop">"contentsHeight"</a> pr <h3 class=fn>void <a name="contentsMouseDoubleClickEvent"></a>TQScrollView::contentsMouseDoubleClickEvent ( <a href="qmouseevent.html">TQMouseEvent</a> * e )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a>(): the click position in <em>e</em> is translated to be a +<a href="tqwidget.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a>(): the click position in <em>e</em> is translated to be a point on the contents. <p> The default implementation generates a normal mouse press event. @@ -464,7 +464,7 @@ point on the contents. <h3 class=fn>void <a name="contentsMouseMoveEvent"></a>TQScrollView::contentsMouseMoveEvent ( <a href="qmouseevent.html">TQMouseEvent</a> * e )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#mouseMoveEvent">mouseMoveEvent</a>(): the mouse position in <em>e</em> is translated to be a point +<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>(): the mouse position in <em>e</em> is translated to be a point on the contents. <p>Examples: <a href="canvas-example.html#x2950">canvas/canvas.cpp</a> and <a href="tutorial2-06.html#x2585">chart/canvasview.cpp</a>. @@ -472,7 +472,7 @@ on the contents. <h3 class=fn>void <a name="contentsMousePressEvent"></a>TQScrollView::contentsMousePressEvent ( <a href="qmouseevent.html">TQMouseEvent</a> * e )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>(): the press position in <em>e</em> is translated to be a point +<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>(): the press position in <em>e</em> is translated to be a point on the contents. <p>Examples: <a href="canvas-example.html#x2951">canvas/canvas.cpp</a> and <a href="tutorial2-06.html#x2586">chart/canvasview.cpp</a>. @@ -480,7 +480,7 @@ on the contents. <h3 class=fn>void <a name="contentsMouseReleaseEvent"></a>TQScrollView::contentsMouseReleaseEvent ( <a href="qmouseevent.html">TQMouseEvent</a> * e )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>(): the release position in <em>e</em> is translated to be a +<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>(): the release position in <em>e</em> is translated to be a point on the contents. <p>Reimplemented in <a href="ntqlistview.html#contentsMouseReleaseEvent">TQListView</a>. @@ -505,7 +505,7 @@ widget. <h3 class=fn>void <a name="contentsWheelEvent"></a>TQScrollView::contentsWheelEvent ( <a href="qwheelevent.html">TQWheelEvent</a> * e )<tt> [virtual protected]</tt> </h3> This event handler is called whenever the TQScrollView receives a -<a href="ntqwidget.html#wheelEvent">wheelEvent</a>() in <em>e</em>: the mouse position is translated to be a +<a href="tqwidget.html#wheelEvent">wheelEvent</a>() in <em>e</em>: the mouse position is translated to be a point on the contents. <h3 class=fn>int <a name="contentsWidth"></a>TQScrollView::contentsWidth () const @@ -517,7 +517,7 @@ See the <a href="ntqscrollview.html#contentsX-prop">"contentsX"</a> property for <h3 class=fn>int <a name="contentsY"></a>TQScrollView::contentsY () const </h3><p>Returns the Y coordinate of the contents that are at the top edge of the viewport. See the <a href="ntqscrollview.html#contentsY-prop">"contentsY"</a> property for details. -<h3 class=fn><a href="ntqwidget.html">TQWidget</a> * <a name="cornerWidget"></a>TQScrollView::cornerWidget () const +<h3 class=fn><a href="tqwidget.html">TQWidget</a> * <a name="cornerWidget"></a>TQScrollView::cornerWidget () const </h3> Returns the widget in the corner between the two scroll bars. <p> By default, no corner widget is present. @@ -639,19 +639,19 @@ Returns TRUE if vertical slider is pressed by user; otherwise returns FALSE. Returns the left margin. <p> <p>See also <a href="#setMargins">setMargins</a>(). -<h3 class=fn>void <a name="moveChild"></a>TQScrollView::moveChild ( <a href="ntqwidget.html">TQWidget</a> * child, int x, int y )<tt> [virtual]</tt> +<h3 class=fn>void <a name="moveChild"></a>TQScrollView::moveChild ( <a href="tqwidget.html">TQWidget</a> * child, int x, int y )<tt> [virtual]</tt> </h3> Repositions the <em>child</em> widget to (<em>x</em>, <em>y</em>). This function is the same as <a href="#addChild">addChild</a>(). -<h3 class=fn>void <a name="removeChild"></a>TQScrollView::removeChild ( <a href="ntqwidget.html">TQWidget</a> * child ) +<h3 class=fn>void <a name="removeChild"></a>TQScrollView::removeChild ( <a href="tqwidget.html">TQWidget</a> * child ) </h3> Removes the <em>child</em> widget from the scrolled area. Note that this happens automatically if the <em>child</em> is deleted. <h3 class=fn>void <a name="repaintContents"></a>TQScrollView::repaintContents ( int x, int y, int w, int h, bool erase = TRUE ) </h3> -Calls <a href="ntqwidget.html#repaint">repaint</a>() on a rectangle defined by <em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>, +Calls <a href="tqwidget.html#repaint">repaint</a>() on a rectangle defined by <em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>, translated appropriately. If the rectangle is not visible, nothing is repainted. If <em>erase</em> is TRUE the background is cleared using the background color. @@ -692,7 +692,7 @@ Scrolls the content so that the point <em>(x, y)</em> is in the top-left corner. <p>Example: <a href="process-example.html#x102">process/process.cpp</a>. -<h3 class=fn>void <a name="setCornerWidget"></a>TQScrollView::setCornerWidget ( <a href="ntqwidget.html">TQWidget</a> * corner )<tt> [virtual]</tt> +<h3 class=fn>void <a name="setCornerWidget"></a>TQScrollView::setCornerWidget ( <a href="tqwidget.html">TQWidget</a> * corner )<tt> [virtual]</tt> </h3> Sets the widget in the <em>corner</em> between the two scroll bars. <p> You will probably also want to set at least one of the scroll bar @@ -759,11 +759,11 @@ The new geometry is given by <em>x</em>, <em>y</em>, <em>w</em> and <em>h</em>. <h3 class=fn>void <a name="setVScrollBarMode"></a>TQScrollView::setVScrollBarMode ( <a href="ntqscrollview.html#ScrollBarMode-enum">ScrollBarMode</a> )<tt> [virtual]</tt> </h3><p>Sets the mode for the vertical scroll bar. See the <a href="ntqscrollview.html#vScrollBarMode-prop">"vScrollBarMode"</a> property for details. -<h3 class=fn>void <a name="showChild"></a>TQScrollView::showChild ( <a href="ntqwidget.html">TQWidget</a> * child, bool y = TRUE ) +<h3 class=fn>void <a name="showChild"></a>TQScrollView::showChild ( <a href="tqwidget.html">TQWidget</a> * child, bool y = TRUE ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Sets the visibility of <em>child</em>. Equivalent to -<a href="ntqwidget.html#show">TQWidget::show</a>() or <a href="ntqwidget.html#hide">TQWidget::hide</a>(). +<a href="tqwidget.html#show">TQWidget::show</a>() or <a href="tqwidget.html#hide">TQWidget::hide</a>(). <h3 class=fn>int <a name="topMargin"></a>TQScrollView::topMargin () const<tt> [protected]</tt> </h3> @@ -772,7 +772,7 @@ Returns the top margin. <h3 class=fn>void <a name="updateContents"></a>TQScrollView::updateContents ( int x, int y, int w, int h ) </h3> -Calls <a href="ntqwidget.html#update">update</a>() on a rectangle defined by <em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>, +Calls <a href="tqwidget.html#update">update</a>() on a rectangle defined by <em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>, translated appropriately. If the rectangle is not visible, nothing is repainted. <p> <p>See also <a href="#repaintContents">repaintContents</a>(). @@ -811,7 +811,7 @@ allow accelerators, autoscrolling, etc. <p> This signal is emitted whenever the user releases the vertical slider. -<h3 class=fn><a href="ntqwidget.html">TQWidget</a> * <a name="viewport"></a>TQScrollView::viewport () const +<h3 class=fn><a href="tqwidget.html">TQWidget</a> * <a name="viewport"></a>TQScrollView::viewport () const </h3> Returns the viewport widget of the scrollview. This is the widget containing the contents widget or which is the drawing area. @@ -828,7 +828,7 @@ viewport). The paint event is passed in <em>pe</em>. </h3> To provide simple processing of events on the contents, this function receives all resize events sent to the viewport. -<p> <p>See also <a href="ntqwidget.html#resizeEvent">TQWidget::resizeEvent</a>(). +<p> <p>See also <a href="tqwidget.html#resizeEvent">TQWidget::resizeEvent</a>(). <p>Example: <a href="tutorial2-06.html#x2587">chart/canvasview.cpp</a>. <h3 class=fn><a href="ntqsize.html">TQSize</a> <a name="viewportSize"></a>TQScrollView::viewportSize ( int x, int y ) const @@ -887,7 +887,7 @@ disables this autoscroll feature. <p> <b>Warning:</b> Enabling this property might not be enough to effectively turn on autoscrolling. If you put a custom widget in the TQScrollView, you might need to call TQDragEvent::ignore() on -the event in the <a href="ntqwidget.html#dragEnterEvent">dragEnterEvent</a>() and <a href="ntqwidget.html#dragMoveEvent">dragMoveEvent</a>() +the event in the <a href="tqwidget.html#dragEnterEvent">dragEnterEvent</a>() and <a href="tqwidget.html#dragMoveEvent">dragMoveEvent</a>() reimplementations. <p>Set this property's value with <a href="#setDragAutoScroll">setDragAutoScroll</a>() and get this property's value with <a href="#dragAutoScroll">dragAutoScroll</a>(). |