summaryrefslogtreecommitdiffstats
path: root/doc/html/dirview-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/dirview-example.html')
-rw-r--r--doc/html/dirview-example.html156
1 files changed, 78 insertions, 78 deletions
diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html
index a896745ae..06227af62 100644
--- a/doc/html/dirview-example.html
+++ b/doc/html/dirview-example.html
@@ -52,7 +52,7 @@ Drag&Drop in a listview.
#ifndef DIRVIEW_H
#define DIRVIEW_H
-#include &lt;<a href="qlistview-h.html">ntqlistview.h</a>&gt;
+#include &lt;<a href="tqlistview-h.html">tqlistview.h</a>&gt;
#include &lt;<a href="tqstring-h.html">tqstring.h</a>&gt;
#include &lt;<a href="tqfile-h.html">tqfile.h</a>&gt;
#include &lt;<a href="tqfileinfo-h.html">tqfileinfo.h</a>&gt;
@@ -64,11 +64,11 @@ class TQDragMoveEvent;
class TQDragLeaveEvent;
class TQDropEvent;
-class FileItem : public <a href="qlistviewitem.html">TQListViewItem</a>
+class FileItem : public <a href="tqlistviewitem.html">TQListViewItem</a>
{
public:
- FileItem( <a href="qlistviewitem.html">TQListViewItem</a> *parent, const <a href="tqstring.html">TQString</a> &amp;s1, const <a href="tqstring.html">TQString</a> &amp;s2 )
- : <a href="qlistviewitem.html">TQListViewItem</a>( parent, s1, s2 ), pix( 0 ) {}
+ FileItem( <a href="tqlistviewitem.html">TQListViewItem</a> *parent, const <a href="tqstring.html">TQString</a> &amp;s1, const <a href="tqstring.html">TQString</a> &amp;s2 )
+ : <a href="tqlistviewitem.html">TQListViewItem</a>( parent, s1, s2 ), pix( 0 ) {}
const <a href="tqpixmap.html">TQPixmap</a> *pixmap( int i ) const;
#if !defined(Q_NO_USING_KEYWORD)
@@ -81,12 +81,12 @@ private:
};
-class Directory : public <a href="qlistviewitem.html">TQListViewItem</a>
+class Directory : public <a href="tqlistviewitem.html">TQListViewItem</a>
{
public:
- Directory( <a href="ntqlistview.html">TQListView</a> * parent, const <a href="tqstring.html">TQString</a>&amp; filename );
+ Directory( <a href="tqlistview.html">TQListView</a> * parent, const <a href="tqstring.html">TQString</a>&amp; filename );
Directory( Directory * parent, const <a href="tqstring.html">TQString</a>&amp; filename, const <a href="tqstring.html">TQString</a> &amp;col2 )
- : <a href="qlistviewitem.html">TQListViewItem</a>( parent, filename, col2 ), pix( 0 ) {}
+ : <a href="tqlistviewitem.html">TQListViewItem</a>( parent, filename, col2 ), pix( 0 ) {}
Directory( Directory * parent, const <a href="tqstring.html">TQString</a>&amp; filename );
<a href="tqstring.html">TQString</a> text( int column ) const;
@@ -111,7 +111,7 @@ private:
};
-class DirectoryView : public <a href="ntqlistview.html">TQListView</a>
+class DirectoryView : public <a href="tqlistview.html">TQListView</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
@@ -126,7 +126,7 @@ signals:
void folderSelected( const <a href="tqstring.html">TQString</a> &amp; );
protected slots:
- void slotFolderSelected( <a href="qlistviewitem.html">TQListViewItem</a> * );
+ void slotFolderSelected( <a href="tqlistviewitem.html">TQListViewItem</a> * );
void openFolder();
protected:
@@ -141,8 +141,8 @@ protected:
private:
<a href="tqstring.html">TQString</a> fullPath(TQListViewItem* item);
bool dirsOnly;
- <a href="qlistviewitem.html">TQListViewItem</a> *oldCurrent;
- <a href="qlistviewitem.html">TQListViewItem</a> *dropItem;
+ <a href="tqlistviewitem.html">TQListViewItem</a> *oldCurrent;
+ <a href="tqlistviewitem.html">TQListViewItem</a> *dropItem;
<a href="tqtimer.html">TQTimer</a>* autoopen_timer;
<a href="tqpoint.html">TQPoint</a> presspos;
bool mousePressed;
@@ -181,7 +181,7 @@ can be used in any other trees.
#include &lt;<a href="tqstrlist-h.html">tqstrlist.h</a>&gt;
#include &lt;<a href="tqstringlist-h.html">tqstringlist.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#include &lt;<a href="qheader-h.html">ntqheader.h</a>&gt;
+#include &lt;<a href="tqheader-h.html">tqheader.h</a>&gt;
static const char* folder_closed_xpm[]={
"16 16 9 1",
@@ -308,7 +308,7 @@ TQPixmap *fileNormal = 0;
*****************************************************************************/
<a name="f476"></a>Directory::Directory( Directory * parent, const <a href="tqstring.html">TQString</a>&amp; filename )
- : <a href="qlistviewitem.html">TQListViewItem</a>( parent ), f(filename),
+ : <a href="tqlistviewitem.html">TQListViewItem</a>( parent ), f(filename),
showDirsOnly( parent-&gt;showDirsOnly ),
pix( 0 )
{
@@ -316,14 +316,14 @@ TQPixmap *fileNormal = 0;
readable = TQDir( fullName() ).isReadable();
if ( !readable )
- <a href="qlistviewitem.html#setPixmap">setPixmap</a>( folderLocked );
+ <a href="tqlistviewitem.html#setPixmap">setPixmap</a>( folderLocked );
else
- <a href="qlistviewitem.html#setPixmap">setPixmap</a>( folderClosed );
+ <a href="tqlistviewitem.html#setPixmap">setPixmap</a>( folderClosed );
}
-Directory::Directory( <a href="ntqlistview.html">TQListView</a> * parent, const <a href="tqstring.html">TQString</a>&amp; filename )
- : <a href="qlistviewitem.html">TQListViewItem</a>( parent ), f(filename),
+Directory::Directory( <a href="tqlistview.html">TQListView</a> * parent, const <a href="tqstring.html">TQString</a>&amp; filename )
+ : <a href="tqlistviewitem.html">TQListViewItem</a>( parent ), f(filename),
showDirsOnly( ( (DirectoryView*)parent )-&gt;showDirsOnly() ),
pix( 0 )
{
@@ -332,52 +332,52 @@ Directory::Directory( <a href="ntqlistview.html">TQListView</a> * parent, const
}
-<a name="x1691"></a>void Directory::<a href="qlistviewitem.html#setPixmap">setPixmap</a>( <a href="tqpixmap.html">TQPixmap</a> *px )
+<a name="x1691"></a>void Directory::<a href="tqlistviewitem.html#setPixmap">setPixmap</a>( <a href="tqpixmap.html">TQPixmap</a> *px )
{
pix = px;
- <a href="qlistviewitem.html#setup">setup</a>();
- <a href="qlistviewitem.html#widthChanged">widthChanged</a>( 0 );
- <a href="qlistviewitem.html#invalidateHeight">invalidateHeight</a>();
- <a href="qlistviewitem.html#repaint">repaint</a>();
+ <a href="tqlistviewitem.html#setup">setup</a>();
+ <a href="tqlistviewitem.html#widthChanged">widthChanged</a>( 0 );
+ <a href="tqlistviewitem.html#invalidateHeight">invalidateHeight</a>();
+ <a href="tqlistviewitem.html#repaint">repaint</a>();
}
-<a name="x1689"></a>const TQPixmap *Directory::<a href="qlistviewitem.html#pixmap">pixmap</a>( int i ) const
+<a name="x1689"></a>const TQPixmap *Directory::<a href="tqlistviewitem.html#pixmap">pixmap</a>( int i ) const
{
if ( i )
return 0;
return pix;
}
-<a name="x1690"></a>void Directory::<a href="qlistviewitem.html#setOpen">setOpen</a>( bool o )
+<a name="x1690"></a>void Directory::<a href="tqlistviewitem.html#setOpen">setOpen</a>( bool o )
{
if ( o )
- <a href="qlistviewitem.html#setPixmap">setPixmap</a>( folderOpen );
+ <a href="tqlistviewitem.html#setPixmap">setPixmap</a>( folderOpen );
else
- <a href="qlistviewitem.html#setPixmap">setPixmap</a>( folderClosed );
+ <a href="tqlistviewitem.html#setPixmap">setPixmap</a>( folderClosed );
if ( o &amp;&amp; !childCount() ) {
<a href="tqstring.html">TQString</a> s( fullName() );
<a href="tqdir.html">TQDir</a> thisDir( s );
<a name="x1667"></a> if ( !thisDir.<a href="tqdir.html#isReadable">isReadable</a>() ) {
readable = FALSE;
- <a href="qlistviewitem.html#setExpandable">setExpandable</a>( FALSE );
+ <a href="tqlistviewitem.html#setExpandable">setExpandable</a>( FALSE );
return;
}
- <a href="qlistviewitem.html#listView">listView</a>()-&gt;setUpdatesEnabled( FALSE );
+ <a href="tqlistviewitem.html#listView">listView</a>()-&gt;setUpdatesEnabled( FALSE );
<a name="x1666"></a> const TQFileInfoList * files = thisDir.<a href="tqdir.html#entryInfoList">entryInfoList</a>();
if ( files ) {
TQFileInfoListIterator it( *files );
<a href="tqfileinfo.html">TQFileInfo</a> * fi;
-<a name="x1694"></a> while( (fi=it.<a href="qlistviewitemiterator.html#current">current</a>()) != 0 ) {
+<a name="x1694"></a> while( (fi=it.<a href="tqlistviewitemiterator.html#current">current</a>()) != 0 ) {
++it;
<a name="x1675"></a> if ( fi-&gt;<a href="tqfileinfo.html#fileName">fileName</a>() == "." || fi-&gt;<a href="tqfileinfo.html#fileName">fileName</a>() == ".." )
; // nothing
<a name="x1678"></a> else if ( fi-&gt;<a href="tqfileinfo.html#isSymLink">isSymLink</a>() &amp;&amp; !showDirsOnly ) {
FileItem *item = new FileItem( this, fi-&gt;<a href="tqfileinfo.html#fileName">fileName</a>(),
"Symbolic Link" );
- item-&gt;<a href="qlistviewitem.html#setPixmap">setPixmap</a>( fileNormal );
+ item-&gt;<a href="tqlistviewitem.html#setPixmap">setPixmap</a>( fileNormal );
}
<a name="x1676"></a> else if ( fi-&gt;<a href="tqfileinfo.html#isDir">isDir</a>() )
(void)new Directory( this, fi-&gt;<a href="tqfileinfo.html#fileName">fileName</a>() );
@@ -385,20 +385,20 @@ Directory::Directory( <a href="ntqlistview.html">TQListView</a> * parent, const
FileItem *item
= new FileItem( this, fi-&gt;<a href="tqfileinfo.html#fileName">fileName</a>(),
<a name="x1677"></a> fi-&gt;<a href="tqfileinfo.html#isFile">isFile</a>()?"File":"Special" );
- item-&gt;<a href="qlistviewitem.html#setPixmap">setPixmap</a>( fileNormal );
+ item-&gt;<a href="tqlistviewitem.html#setPixmap">setPixmap</a>( fileNormal );
}
}
}
listView()-&gt;setUpdatesEnabled( TRUE );
}
- TQListViewItem::<a href="qlistviewitem.html#setOpen">setOpen</a>( o );
+ TQListViewItem::<a href="tqlistviewitem.html#setOpen">setOpen</a>( o );
}
-<a name="x1692"></a>void Directory::<a href="qlistviewitem.html#setup">setup</a>()
+<a name="x1692"></a>void Directory::<a href="tqlistviewitem.html#setup">setup</a>()
{
setExpandable( TRUE );
- TQListViewItem::<a href="qlistviewitem.html#setup">setup</a>();
+ TQListViewItem::<a href="tqlistviewitem.html#setup">setup</a>();
}
@@ -416,7 +416,7 @@ TQString <a name="f477"></a>Directory::fullName()
}
-<a name="x1693"></a>TQString Directory::<a href="qlistviewitem.html#text">text</a>( int column ) const
+<a name="x1693"></a>TQString Directory::<a href="tqlistviewitem.html#text">text</a>( int column ) const
{
if ( column == 0 )
return f.name();
@@ -433,7 +433,7 @@ TQString <a name="f477"></a>Directory::fullName()
*****************************************************************************/
<a name="f478"></a>DirectoryView::DirectoryView( <a href="tqwidget.html">TQWidget</a> *parent, const char *name, bool sdo )
- : <a href="ntqlistview.html">TQListView</a>( parent, name ), dirsOnly( sdo ), oldCurrent( 0 ),
+ : <a href="tqlistview.html">TQListView</a>( parent, name ), dirsOnly( sdo ), oldCurrent( 0 ),
dropItem( 0 ), mousePressed( FALSE )
{
autoopen_timer = new <a href="tqtimer.html">TQTimer</a>( this );
@@ -444,10 +444,10 @@ TQString <a name="f477"></a>Directory::fullName()
fileNormal = new <a href="tqpixmap.html">TQPixmap</a>( pix_file );
}
- <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="ntqlistview.html#doubleClicked">doubleClicked</a>( <a href="qlistviewitem.html">TQListViewItem</a> * ) ),
- this, TQ_SLOT( slotFolderSelected( <a href="qlistviewitem.html">TQListViewItem</a> * ) ) );
- <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="ntqlistview.html#returnPressed">returnPressed</a>( <a href="qlistviewitem.html">TQListViewItem</a> * ) ),
- this, TQ_SLOT( slotFolderSelected( <a href="qlistviewitem.html">TQListViewItem</a> * ) ) );
+ <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqlistview.html#doubleClicked">doubleClicked</a>( <a href="tqlistviewitem.html">TQListViewItem</a> * ) ),
+ this, TQ_SLOT( slotFolderSelected( <a href="tqlistviewitem.html">TQListViewItem</a> * ) ) );
+ <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqlistview.html#returnPressed">returnPressed</a>( <a href="tqlistviewitem.html">TQListViewItem</a> * ) ),
+ this, TQ_SLOT( slotFolderSelected( <a href="tqlistviewitem.html">TQListViewItem</a> * ) ) );
<a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>( TRUE );
<a href="tqscrollview.html#viewport">viewport</a>()-&gt;setAcceptDrops( TRUE );
@@ -456,7 +456,7 @@ TQString <a name="f477"></a>Directory::fullName()
this, TQ_SLOT( openFolder() ) );
}
-void <a name="f479"></a>DirectoryView::slotFolderSelected( <a href="qlistviewitem.html">TQListViewItem</a> *i )
+void <a name="f479"></a>DirectoryView::slotFolderSelected( <a href="tqlistviewitem.html">TQListViewItem</a> *i )
{
if ( !i || !showDirsOnly() )
return;
@@ -484,9 +484,9 @@ static const int autoopenTime = 750;
return;
}
- oldCurrent = <a href="ntqlistview.html#currentItem">currentItem</a>();
+ oldCurrent = <a href="tqlistview.html#currentItem">currentItem</a>();
-<a name="x1673"></a> <a href="qlistviewitem.html">TQListViewItem</a> *i = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="tqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="tqdropevent.html#pos">pos</a>()) );
+<a name="x1673"></a> <a href="tqlistviewitem.html">TQListViewItem</a> *i = <a href="tqlistview.html#itemAt">itemAt</a>( <a href="tqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="tqdropevent.html#pos">pos</a>()) );
if ( i ) {
dropItem = i;
<a name="x1704"></a> autoopen_timer-&gt;<a href="tqtimer.html#start">start</a>( autoopenTime );
@@ -502,9 +502,9 @@ static const int autoopenTime = 750;
}
<a href="tqpoint.html">TQPoint</a> vp = <a href="tqscrollview.html#contentsToViewport">contentsToViewport</a>( ( (TQDragMoveEvent*)e )-&gt;pos() );
- <a href="qlistviewitem.html">TQListViewItem</a> *i = <a href="ntqlistview.html#itemAt">itemAt</a>( vp );
+ <a href="tqlistviewitem.html">TQListViewItem</a> *i = <a href="tqlistview.html#itemAt">itemAt</a>( vp );
if ( i ) {
- <a href="ntqlistview.html#setSelected">setSelected</a>( i, TRUE );
+ <a href="tqlistview.html#setSelected">setSelected</a>( i, TRUE );
<a name="x1668"></a> e-&gt;<a href="tqdragmoveevent.html#accept">accept</a>();
if ( i != dropItem ) {
autoopen_timer-&gt;<a href="tqtimer.html#stop">stop</a>();
@@ -535,8 +535,8 @@ static const int autoopenTime = 750;
autoopen_timer-&gt;<a href="tqtimer.html#stop">stop</a>();
dropItem = 0;
- <a href="ntqlistview.html#setCurrentItem">setCurrentItem</a>( oldCurrent );
- <a href="ntqlistview.html#setSelected">setSelected</a>( oldCurrent, TRUE );
+ <a href="tqlistview.html#setCurrentItem">setCurrentItem</a>( oldCurrent );
+ <a href="tqlistview.html#setSelected">setSelected</a>( oldCurrent, TRUE );
}
<a name="x1682"></a>void DirectoryView::<a href="tqscrollview.html#contentsDropEvent">contentsDropEvent</a>( <a href="tqdropevent.html">TQDropEvent</a> *e )
@@ -548,7 +548,7 @@ static const int autoopenTime = 750;
return;
}
- <a href="qlistviewitem.html">TQListViewItem</a> *item = <a href="ntqlistview.html#itemAt">itemAt</a>( <a href="tqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="tqdropevent.html#pos">pos</a>()) );
+ <a href="tqlistviewitem.html">TQListViewItem</a> *item = <a href="tqlistview.html#itemAt">itemAt</a>( <a href="tqscrollview.html#contentsToViewport">contentsToViewport</a>(e-&gt;<a href="tqdropevent.html#pos">pos</a>()) );
if ( item ) {
<a href="tqstrlist.html">TQStrList</a> lst;
@@ -593,12 +593,12 @@ static const int autoopenTime = 750;
TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item)
{
- <a href="tqstring.html">TQString</a> fullpath = item-&gt;<a href="qlistviewitem.html#text">text</a>(0);
-<a name="x1688"></a> while ( (item=item-&gt;<a href="qlistviewitem.html#parent">parent</a>()) ) {
- if ( item-&gt;<a href="qlistviewitem.html#parent">parent</a>() )
- fullpath = item-&gt;<a href="qlistviewitem.html#text">text</a>(0) + "/" + fullpath;
+ <a href="tqstring.html">TQString</a> fullpath = item-&gt;<a href="tqlistviewitem.html#text">text</a>(0);
+<a name="x1688"></a> while ( (item=item-&gt;<a href="tqlistviewitem.html#parent">parent</a>()) ) {
+ if ( item-&gt;<a href="tqlistviewitem.html#parent">parent</a>() )
+ fullpath = item-&gt;<a href="tqlistviewitem.html#text">text</a>(0) + "/" + fullpath;
else
- fullpath = item-&gt;<a href="qlistviewitem.html#text">text</a>(0) + fullpath;
+ fullpath = item-&gt;<a href="tqlistviewitem.html#text">text</a>(0) + fullpath;
}
#ifdef TQ_WS_WIN
<a name="x1702"></a> if (fullpath.<a href="tqstring.html#length">length</a>() &gt; 2 &amp;&amp; fullpath[1] != ':') {
@@ -610,15 +610,15 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item)
return fullpath;
}
-<a name="x1684"></a>void DirectoryView::<a href="ntqlistview.html#contentsMousePressEvent">contentsMousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a>* e )
+<a name="x1684"></a>void DirectoryView::<a href="tqlistview.html#contentsMousePressEvent">contentsMousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a>* e )
{
- TQListView::<a href="ntqlistview.html#contentsMousePressEvent">contentsMousePressEvent</a>(e);
+ TQListView::<a href="tqlistview.html#contentsMousePressEvent">contentsMousePressEvent</a>(e);
<a href="tqpoint.html">TQPoint</a> p( contentsToViewport( e-&gt;<a href="tqdropevent.html#pos">pos</a>() ) );
- <a href="qlistviewitem.html">TQListViewItem</a> *i = itemAt( p );
+ <a href="tqlistviewitem.html">TQListViewItem</a> *i = itemAt( p );
if ( i ) {
// if the user clicked into the root decoration of the item, don't try to start a drag!
<a name="x1696"></a> if ( p.<a href="tqpoint.html#x">x</a>() &gt; header()-&gt;cellPos( header()-&gt;mapToActual( 0 ) ) +
-<a name="x1686"></a> treeStepSize() * ( i-&gt;<a href="qlistviewitem.html#depth">depth</a>() + ( rootIsDecorated() ? 1 : 0) ) + itemMargin() ||
+<a name="x1686"></a> treeStepSize() * ( i-&gt;<a href="tqlistviewitem.html#depth">depth</a>() + ( rootIsDecorated() ? 1 : 0) ) + itemMargin() ||
p.<a href="tqpoint.html#x">x</a>() &lt; header()-&gt;cellPos( header()-&gt;mapToActual( 0 ) ) ) {
presspos = e-&gt;<a href="tqdropevent.html#pos">pos</a>();
mousePressed = TRUE;
@@ -626,11 +626,11 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item)
}
}
-<a name="x1683"></a>void DirectoryView::<a href="ntqlistview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a>* e )
+<a name="x1683"></a>void DirectoryView::<a href="tqlistview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a>* e )
{
if ( mousePressed &amp;&amp; ( presspos - e-&gt;<a href="tqdropevent.html#pos">pos</a>() ).manhattanLength() &gt; TQApplication::<a href="ntqapplication.html#startDragDistance">startDragDistance</a>() ) {
mousePressed = FALSE;
- <a href="qlistviewitem.html">TQListViewItem</a> *item = itemAt( contentsToViewport(presspos) );
+ <a href="tqlistviewitem.html">TQListViewItem</a> *item = itemAt( contentsToViewport(presspos) );
if ( item ) {
<a href="tqstring.html">TQString</a> source = fullPath(item);
<a name="x1674"></a> if ( TQFile::<a href="tqfile.html#exists">exists</a>(source) ) {
@@ -644,29 +644,29 @@ TQString <a name="f481"></a>DirectoryView::fullPath(TQListViewItem* item)
}
}
-<a name="x1685"></a>void DirectoryView::<a href="ntqlistview.html#contentsMouseReleaseEvent">contentsMouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * )
+<a name="x1685"></a>void DirectoryView::<a href="tqlistview.html#contentsMouseReleaseEvent">contentsMouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * )
{
mousePressed = FALSE;
}
void <a name="f482"></a>DirectoryView::setDir( const <a href="tqstring.html">TQString</a> &amp;s )
{
- <a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( this );
+ <a href="tqlistviewitemiterator.html">TQListViewItemIterator</a> it( this );
++it;
- for ( ; it.<a href="qlistviewitemiterator.html#current">current</a>(); ++it ) {
- it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;setOpen( FALSE );
+ for ( ; it.<a href="tqlistviewitemiterator.html#current">current</a>(); ++it ) {
+ it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;setOpen( FALSE );
}
<a name="x1703"></a> <a href="tqstringlist.html">TQStringList</a> lst( TQStringList::<a href="tqstringlist.html#split">split</a>( "/", s ) );
- <a href="qlistviewitem.html">TQListViewItem</a> *item = <a href="qlistviewitem.html#firstChild">firstChild</a>();
+ <a href="tqlistviewitem.html">TQListViewItem</a> *item = <a href="tqlistviewitem.html#firstChild">firstChild</a>();
<a name="x1698"></a> TQStringList::Iterator it2 = lst.<a href="tqvaluelist.html#begin">begin</a>();
<a name="x1700"></a> for ( ; it2 != lst.<a href="tqvaluelist.html#end">end</a>(); ++it2 ) {
while ( item ) {
- if ( item-&gt;<a href="qlistviewitem.html#text">text</a>( 0 ) == *it2 ) {
- item-&gt;<a href="qlistviewitem.html#setOpen">setOpen</a>( TRUE );
+ if ( item-&gt;<a href="tqlistviewitem.html#text">text</a>( 0 ) == *it2 ) {
+ item-&gt;<a href="tqlistviewitem.html#setOpen">setOpen</a>( TRUE );
break;
}
-<a name="x1687"></a> item = item-&gt;<a href="qlistviewitem.html#itemBelow">itemBelow</a>();
+<a name="x1687"></a> item = item-&gt;<a href="tqlistviewitem.html#itemBelow">itemBelow</a>();
}
}
@@ -674,17 +674,17 @@ void <a name="f482"></a>DirectoryView::setDir( const <a href="tqstring.html">TQS
setCurrentItem( item );
}
-void FileItem::<a href="qlistviewitem.html#setPixmap">setPixmap</a>( <a href="tqpixmap.html">TQPixmap</a> *p )
+void FileItem::<a href="tqlistviewitem.html#setPixmap">setPixmap</a>( <a href="tqpixmap.html">TQPixmap</a> *p )
{
pix = p;
- <a href="qlistviewitem.html#setup">setup</a>();
- <a href="qlistviewitem.html#widthChanged">widthChanged</a>( 0 );
- <a href="qlistviewitem.html#invalidateHeight">invalidateHeight</a>();
- <a href="qlistviewitem.html#repaint">repaint</a>();
+ <a href="tqlistviewitem.html#setup">setup</a>();
+ <a href="tqlistviewitem.html#widthChanged">widthChanged</a>( 0 );
+ <a href="tqlistviewitem.html#invalidateHeight">invalidateHeight</a>();
+ <a href="tqlistviewitem.html#repaint">repaint</a>();
}
-const TQPixmap *FileItem::<a href="qlistviewitem.html#pixmap">pixmap</a>( int i ) const
+const TQPixmap *FileItem::<a href="tqlistviewitem.html#pixmap">pixmap</a>( int i ) const
{
if ( i )
return 0;
@@ -715,9 +715,9 @@ int main( int argc, char ** argv )
DirectoryView mw;
-<a name="x1714"></a> mw.<a href="ntqlistview.html#addColumn">addColumn</a>( "Name" );
- mw.<a href="ntqlistview.html#addColumn">addColumn</a>( "Type" );
-<a name="x1716"></a> mw.<a href="ntqlistview.html#setTreeStepSize">setTreeStepSize</a>( 20 );
+<a name="x1714"></a> mw.<a href="tqlistview.html#addColumn">addColumn</a>( "Name" );
+ mw.<a href="tqlistview.html#addColumn">addColumn</a>( "Type" );
+<a name="x1716"></a> mw.<a href="tqlistview.html#setTreeStepSize">setTreeStepSize</a>( 20 );
<a name="x1712"></a> const TQFileInfoList* roots = TQDir::<a href="tqdir.html#drives">drives</a>();
<a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQFileInfo&gt; i(*roots);
@@ -726,12 +726,12 @@ int main( int argc, char ** argv )
++i;
<a name="x1713"></a> Directory * root = new Directory( &amp;mw, fi-&gt;<a href="tqfileinfo.html#filePath">filePath</a>() );
if ( roots-&gt;count() &lt;= 1 )
-<a name="x1718"></a> root-&gt;<a href="qlistviewitem.html#setOpen">setOpen</a>( TRUE ); // be interesting
+<a name="x1718"></a> root-&gt;<a href="tqlistviewitem.html#setOpen">setOpen</a>( TRUE ); // be interesting
}
<a name="x1719"></a> mw.<a href="tqwidget.html#resize">resize</a>( 400, 400 );
mw.<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Directory Browser" );
-<a name="x1715"></a> mw.<a href="ntqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
+<a name="x1715"></a> mw.<a href="tqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;mw );
<a name="x1717"></a> mw.<a href="tqwidget.html#show">show</a>();