From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial2-06.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/tutorial2-06.html') diff --git a/doc/html/tutorial2-06.html b/doc/html/tutorial2-06.html index 3f2c03868..d57d8cf9e 100644 --- a/doc/html/tutorial2-06.html +++ b/doc/html/tutorial2-06.html @@ -271,7 +271,7 @@ vector.

(Extracts from canvasview.cpp.)

-

    void CanvasView::contentsContextMenuEvent( TQContextMenuEvent * )
+
    void CanvasView::contentsContextMenuEvent( TQContextMenuEvent * )
     {
         ((ChartForm*)parent())->optionsMenu->exec( TQCursor::pos() );
     }
@@ -282,7 +282,7 @@ to the right type and then exec()ute the options menu at the cursor
 position. 
 

Handling Resizing

-

    void CanvasView::viewportResizeEvent( TQResizeEvent *e )
+

    void CanvasView::viewportResizeEvent( TQResizeEvent *e )
     {
         canvas()->resize( e->size().width(), e->size().height() );
         ((ChartForm*)parent())->drawElements();
@@ -297,7 +297,7 @@ drawn correctly.
 
 

When the user wants to drag a label into position they click it, then drag and release at the new position. -

    void CanvasView::contentsMousePressEvent( TQMouseEvent *e )
+

    void CanvasView::contentsMousePressEvent( TQMouseEvent *e )
     {
         TQCanvasItemList list = canvas()->collisions( e->pos() );
         for ( TQCanvasItemList::iterator it = list.begin(); it != list.end(); ++it )
@@ -313,7 +313,7 @@ drag and release at the new position.
 the mouse click "collided" with (if any). We then iterate over this
 list and if we find a CanvasText item we set it as the moving item
 and record its position. Otherwise we set there to be no moving item.
-

    void CanvasView::contentsMouseMoveEvent( TQMouseEvent *e )
+

    void CanvasView::contentsMouseMoveEvent( TQMouseEvent *e )
     {
         if ( m_movingItem ) {
             TQPoint offset = e->pos() - m_pos;
-- 
cgit v1.2.3