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/dirview-example.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'doc/html/dirview-example.html') diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html index 246a04854..5fae5a736 100644 --- a/doc/html/dirview-example.html +++ b/doc/html/dirview-example.html @@ -70,14 +70,14 @@ public: FileItem( TQListViewItem *parent, const TQString &s1, const TQString &s2 ) : TQListViewItem( parent, s1, s2 ), pix( 0 ) {} - const TQPixmap *pixmap( int i ) const; + const TQPixmap *pixmap( int i ) const; #if !defined(Q_NO_USING_KEYWORD) using TQListViewItem::setPixmap; #endif - void setPixmap( TQPixmap *p ); + void setPixmap( TQPixmap *p ); private: - TQPixmap *pix; + TQPixmap *pix; }; @@ -96,18 +96,18 @@ public: void setOpen( bool ); void setup(); - const TQPixmap *pixmap( int i ) const; + const TQPixmap *pixmap( int i ) const; #if !defined(Q_NO_USING_KEYWORD) using TQListViewItem::setPixmap; #endif - void setPixmap( TQPixmap *p ); + void setPixmap( TQPixmap *p ); private: TQFile f; Directory * p; bool readable; bool showDirsOnly; - TQPixmap *pix; + TQPixmap *pix; }; @@ -144,7 +144,7 @@ private: TQListViewItem *oldCurrent; TQListViewItem *dropItem; TQTimer* autoopen_timer; - TQPoint presspos; + TQPoint presspos; bool mousePressed; }; @@ -172,9 +172,9 @@ can be used in any other trees. #include <tqdir.h> #include <tqfile.h> #include <tqfileinfo.h> -#include <ntqpixmap.h> +#include <tqpixmap.h> #include <ntqevent.h> -#include <ntqpoint.h> +#include <tqpoint.h> #include <ntqmessagebox.h> #include <tqdragobject.h> #include <tqmime.h> @@ -332,7 +332,7 @@ Directory::Directory( TQListView * parent, const } -void Directory::setPixmap( TQPixmap *px ) +void Directory::setPixmap( TQPixmap *px ) { pix = px; setup(); @@ -438,10 +438,10 @@ TQString Directory::fullName() { autoopen_timer = new TQTimer( this ); if ( !folderLocked ) { - folderLocked = new TQPixmap( folder_locked ); - folderClosed = new TQPixmap( folder_closed_xpm ); - folderOpen = new TQPixmap( folder_open_xpm ); - fileNormal = new TQPixmap( pix_file ); + folderLocked = new TQPixmap( folder_locked ); + folderClosed = new TQPixmap( folder_closed_xpm ); + folderOpen = new TQPixmap( folder_open_xpm ); + fileNormal = new TQPixmap( pix_file ); } connect( this, TQ_SIGNAL( doubleClicked( TQListViewItem * ) ), @@ -501,7 +501,7 @@ static const int autoopenTime = 750; return; } - TQPoint vp = contentsToViewport( ( (TQDragMoveEvent*)e )->pos() ); + TQPoint vp = contentsToViewport( ( (TQDragMoveEvent*)e )->pos() ); TQListViewItem *i = itemAt( vp ); if ( i ) { setSelected( i, TRUE ); @@ -613,13 +613,13 @@ TQString DirectoryView::fullPath(TQListViewItem* item) void DirectoryView::contentsMousePressEvent( TQMouseEvent* e ) { TQListView::contentsMousePressEvent(e); - TQPoint p( contentsToViewport( e->pos() ) ); + TQPoint p( contentsToViewport( e->pos() ) ); TQListViewItem *i = itemAt( p ); if ( i ) { // if the user clicked into the root decoration of the item, don't try to start a drag! - if ( p.x() > header()->cellPos( header()->mapToActual( 0 ) ) + + if ( p.x() > header()->cellPos( header()->mapToActual( 0 ) ) + treeStepSize() * ( i->depth() + ( rootIsDecorated() ? 1 : 0) ) + itemMargin() || - p.x() < header()->cellPos( header()->mapToActual( 0 ) ) ) { + p.x() < header()->cellPos( header()->mapToActual( 0 ) ) ) { presspos = e->pos(); mousePressed = TRUE; } @@ -674,7 +674,7 @@ void DirectoryView::setDir( const TQS setCurrentItem( item ); } -void FileItem::setPixmap( TQPixmap *p ) +void FileItem::setPixmap( TQPixmap *p ) { pix = p; setup(); -- cgit v1.2.3