diff options
Diffstat (limited to 'doc/html/dirview-example.html')
-rw-r--r-- | doc/html/dirview-example.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html index f8c0fd5f8..8a04e9cef 100644 --- a/doc/html/dirview-example.html +++ b/doc/html/dirview-example.html @@ -56,7 +56,7 @@ Drag&Drop in a listview. #include <<a href="tqstring-h.html">tqstring.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> #include <<a href="qfileinfo-h.html">ntqfileinfo.h</a>> -#include <<a href="qtimer-h.html">ntqtimer.h</a>> +#include <<a href="tqtimer-h.html">tqtimer.h</a>> class TQWidget; class TQDragEnterEvent; @@ -143,7 +143,7 @@ private: bool dirsOnly; <a href="qlistviewitem.html">TQListViewItem</a> *oldCurrent; <a href="qlistviewitem.html">TQListViewItem</a> *dropItem; - <a href="ntqtimer.html">TQTimer</a>* autoopen_timer; + <a href="tqtimer.html">TQTimer</a>* autoopen_timer; <a href="ntqpoint.html">TQPoint</a> presspos; bool mousePressed; @@ -436,7 +436,7 @@ TQString <a name="f477"></a>Directory::fullName() : <a href="ntqlistview.html">TQListView</a>( parent, name ), dirsOnly( sdo ), oldCurrent( 0 ), dropItem( 0 ), mousePressed( FALSE ) { - autoopen_timer = new <a href="ntqtimer.html">TQTimer</a>( this ); + autoopen_timer = new <a href="tqtimer.html">TQTimer</a>( this ); if ( !folderLocked ) { folderLocked = new <a href="ntqpixmap.html">TQPixmap</a>( folder_locked ); folderClosed = new <a href="ntqpixmap.html">TQPixmap</a>( folder_closed_xpm ); @@ -452,7 +452,7 @@ TQString <a name="f477"></a>Directory::fullName() <a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>( TRUE ); <a href="ntqscrollview.html#viewport">viewport</a>()->setAcceptDrops( TRUE ); -<a name="x1706"></a> <a href="tqobject.html#connect">connect</a>( autoopen_timer, TQ_SIGNAL( <a href="ntqtimer.html#timeout">timeout</a>() ), +<a name="x1706"></a> <a href="tqobject.html#connect">connect</a>( autoopen_timer, TQ_SIGNAL( <a href="tqtimer.html#timeout">timeout</a>() ), this, TQ_SLOT( openFolder() ) ); } @@ -467,7 +467,7 @@ void <a name="f479"></a>DirectoryView::slotFolderSelected( <a href="qlistviewite void <a name="f480"></a>DirectoryView::openFolder() { -<a name="x1705"></a> autoopen_timer-><a href="ntqtimer.html#stop">stop</a>(); +<a name="x1705"></a> autoopen_timer-><a href="tqtimer.html#stop">stop</a>(); if ( dropItem && !dropItem->isOpen() ) { dropItem->setOpen( TRUE ); dropItem->repaint(); @@ -489,7 +489,7 @@ static const int autoopenTime = 750; <a name="x1673"></a> <a href="qlistviewitem.html">TQListViewItem</a> *i = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="ntqscrollview.html#contentsToViewport">contentsToViewport</a>(e-><a href="qdropevent.html#pos">pos</a>()) ); if ( i ) { dropItem = i; -<a name="x1704"></a> autoopen_timer-><a href="ntqtimer.html#start">start</a>( autoopenTime ); +<a name="x1704"></a> autoopen_timer-><a href="tqtimer.html#start">start</a>( autoopenTime ); } } @@ -507,9 +507,9 @@ static const int autoopenTime = 750; <a href="ntqlistview.html#setSelected">setSelected</a>( i, TRUE ); <a name="x1668"></a> e-><a href="qdragmoveevent.html#accept">accept</a>(); if ( i != dropItem ) { - autoopen_timer-><a href="ntqtimer.html#stop">stop</a>(); + autoopen_timer-><a href="tqtimer.html#stop">stop</a>(); dropItem = i; - autoopen_timer-><a href="ntqtimer.html#start">start</a>( autoopenTime ); + autoopen_timer-><a href="tqtimer.html#start">start</a>( autoopenTime ); } <a name="x1672"></a> switch ( e-><a href="qdropevent.html#action">action</a>() ) { case TQDropEvent::Copy: @@ -525,14 +525,14 @@ static const int autoopenTime = 750; } } else { e-><a href="qdragmoveevent.html#ignore">ignore</a>(); - autoopen_timer-><a href="ntqtimer.html#stop">stop</a>(); + autoopen_timer-><a href="tqtimer.html#stop">stop</a>(); dropItem = 0; } } <a name="x1680"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDragLeaveEvent">contentsDragLeaveEvent</a>( <a href="qdragleaveevent.html">TQDragLeaveEvent</a> * ) { - autoopen_timer-><a href="ntqtimer.html#stop">stop</a>(); + autoopen_timer-><a href="tqtimer.html#stop">stop</a>(); dropItem = 0; <a href="ntqlistview.html#setCurrentItem">setCurrentItem</a>( oldCurrent ); @@ -541,7 +541,7 @@ static const int autoopenTime = 750; <a name="x1682"></a>void DirectoryView::<a href="ntqscrollview.html#contentsDropEvent">contentsDropEvent</a>( <a href="qdropevent.html">TQDropEvent</a> *e ) { - autoopen_timer-><a href="ntqtimer.html#stop">stop</a>(); + autoopen_timer-><a href="tqtimer.html#stop">stop</a>(); if ( !TQUriDrag::canDecode(e) ) { e-><a href="qdragmoveevent.html#ignore">ignore</a>(); |