From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/fileiconview-example.html | 58 +++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'doc/html/fileiconview-example.html') diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html index bc63cc7bc..a4619fe8d 100644 --- a/doc/html/fileiconview-example.html +++ b/doc/html/fileiconview-example.html @@ -81,7 +81,7 @@ public: const char* format( int i ) const; TQByteArray encodedData( const char* mime ) const; static bool canDecode( TQMimeSource* e ); - void append( const TQIconDragItem &item, const TQRect &pr, const TQRect &tr, const TQString &url ); + void append( const TQIconDragItem &item, const TQRect &pr, const TQRect &tr, const TQString &url ); private: TQStringList urls; @@ -155,7 +155,7 @@ protected: TQDir viewDir; int newFolderNum; TQSize sz; - TQPixmap pix; + TQPixmap pix; ViewMode vm; TQtFileIconViewItem *openItem; @@ -228,7 +228,7 @@ protected: #include "tqfileiconview.h" #include <tqpainter.h> #include <tqstringlist.h> -#include <ntqpixmap.h> +#include <tqpixmap.h> #include <tqmime.h> #include <tqstrlist.h> #include <tqdragobject.h> @@ -237,7 +237,7 @@ protected: #include <tqpopupmenu.h> #include <ntqcursor.h> #include <ntqapplication.h> -#include <ntqwmatrix.h> +#include <tqwmatrix.h> #include <stdlib.h> @@ -503,8 +503,8 @@ static void cleanup() e->provides( "text/uri-list" ); } -void TQtFileIconDrag::append( const TQIconDragItem &item, const TQRect &pr, - const TQRect &tr, const TQString &url ) +void TQtFileIconDrag::append( const TQIconDragItem &item, const TQRect &pr, + const TQRect &tr, const TQString &url ) { TQIconDrag::append( item, pr, tr ); TQString ourUrl = url; @@ -690,24 +690,24 @@ TQtFileIconViewItem::~TQtFileIconViewItem() { if ( !iconFolderLockedLarge ) { tqAddPostRoutine( cleanup ); - TQWMatrix m; - m.scale( 0.6, 0.6 ); - TQPixmap iconpix( folder_locked_icon ); - iconFolderLockedLarge = new TQPixmap( folder_locked_icon ); - iconpix = iconpix.xForm( m ); - iconFolderLockedSmall = new TQPixmap( iconpix ); + TQWMatrix m; + m.scale( 0.6, 0.6 ); + TQPixmap iconpix( folder_locked_icon ); + iconFolderLockedLarge = new TQPixmap( folder_locked_icon ); + iconpix = iconpix.xForm( m ); + iconFolderLockedSmall = new TQPixmap( iconpix ); iconpix = TQPixmap( folder_icon ); - iconFolderLarge = new TQPixmap( folder_icon ); - iconpix = iconpix.xForm( m ); - iconFolderSmall = new TQPixmap( iconpix ); + iconFolderLarge = new TQPixmap( folder_icon ); + iconpix = iconpix.xForm( m ); + iconFolderSmall = new TQPixmap( iconpix ); iconpix = TQPixmap( file_icon ); - iconFileLarge = new TQPixmap( file_icon ); - iconpix = iconpix.xForm( m ); - iconFileSmall = new TQPixmap( iconpix ); + iconFileLarge = new TQPixmap( file_icon ); + iconpix = iconpix.xForm( m ); + iconFileSmall = new TQPixmap( iconpix ); iconpix = TQPixmap( link_icon ); - iconLinkLarge = new TQPixmap( link_icon ); - iconpix = iconpix.xForm( m ); - iconLinkSmall = new TQPixmap( iconpix ); + iconLinkLarge = new TQPixmap( link_icon ); + iconpix = iconpix.xForm( m ); + iconLinkSmall = new TQPixmap( iconpix ); } vm = Large; @@ -722,7 +722,7 @@ TQtFileIconViewItem::~TQtFileIconViewItem() this, TQ_SLOT( itemDoubleClicked( TQIconViewItem * ) ) ); connect( this, TQ_SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), this, TQ_SLOT( slotDropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ) ); - connect( this, TQ_SIGNAL( contextMenuRequested( TQIconViewItem *, const TQPoint & ) ), + connect( this, TQ_SIGNAL( contextMenuRequested( TQIconViewItem *, const TQPoint & ) ), this, TQ_SLOT( slotRightPressed( TQIconViewItem * ) ) ); setHScrollBarMode( AlwaysOff ); @@ -877,7 +877,7 @@ void TQtFileIconView::itemDoubleClicked( TQPoint orig = viewportToContents( viewport()->mapFromGlobal( TQCursor::pos() ) ); + TQPoint orig = viewportToContents( viewport()->mapFromGlobal( TQCursor::pos() ) ); TQtFileIconDrag *drag = new TQtFileIconDrag( viewport() ); drag->setPixmap( *currentItem()->pixmap(), TQPoint( currentItem()->pixmapRect().width() / 2, currentItem()->pixmapRect().height() / 2 ) ); @@ -887,11 +887,11 @@ void TQtFileIconView::itemDoubleClicked( TQIconDragItem id; id.setData( TQCString( item->filename() ) ); drag->append( id, - TQRect( item->pixmapRect( FALSE ).x() - orig.x(), - item->pixmapRect( FALSE ).y() - orig.y(), + TQRect( item->pixmapRect( FALSE ).x() - orig.x(), + item->pixmapRect( FALSE ).y() - orig.y(), item->pixmapRect().width(), item->pixmapRect().height() ), - TQRect( item->textRect( FALSE ).x() - orig.x(), - item->textRect( FALSE ).y() - orig.y(), + TQRect( item->textRect( FALSE ).x() - orig.x(), + item->textRect( FALSE ).y() - orig.y(), item->textRect().width(), item->textRect().height() ), TQString( item->filename() ) ); } @@ -1140,7 +1140,7 @@ protected slots: #include <tqstatusbar.h> #include <tqtoolbar.h> #include <ntqcombobox.h> -#include <ntqpixmap.h> +#include <tqpixmap.h> #include <tqtoolbutton.h> #include <tqdir.h> #include <tqfileinfo.h> @@ -1225,7 +1225,7 @@ void FileMainWindow::setup() toolbar->addSeparator(); - TQPixmap pix; + TQPixmap pix; pix = TQPixmap( cdtoparent_xpm ); upButton = new TQToolButton( pix, "One directory up", TQString::null, -- cgit v1.2.1