Logo Search packages:      
Sourcecode: k4dirstat version File versions  Download package

void KDirTreeView::createTree (  ) [protected]

Create a new tree (and delete the old one if there is one)

Definition at line 233 of file kdirtreeview.cpp.

References aborted(), addChild(), clear(), deleteChild(), finalizeLocal(), finished(), prepareReading(), progressInfo(), selectionChanged(), selectItem(), sendProgressInfo(), slotAborted(), slotFinished(), and startingReading().

Referenced by KDirTreeView().

{
    // Clean up any old leftovers

    clear();
    _currentDir = "";

    if ( _tree )
      delete _tree;


    // Create new (empty) dir tree

    _tree = new KDirTree();


    // Connect signals

    connect( _tree, SIGNAL( progressInfo    ( const QString & ) ),
           this,  SLOT  ( sendProgressInfo( const QString & ) ) );

    connect( _tree, SIGNAL( childAdded( KFileInfo * ) ),
           this,  SLOT  ( addChild  ( KFileInfo * ) ) );

    connect( _tree, SIGNAL( deletingChild( KFileInfo * ) ),
           this,  SLOT  ( deleteChild  ( KFileInfo * ) ) );

    connect( _tree, SIGNAL( startingReading() ),
           this,  SLOT  ( prepareReading()  ) );

    connect( _tree, SIGNAL( finished()     ),
           this,  SLOT  ( slotFinished() ) );

    connect( _tree, SIGNAL( aborted()     ),
           this,  SLOT  ( slotAborted() ) );

    connect( _tree, SIGNAL( finalizeLocal( KDirInfo * ) ),
           this,  SLOT  ( finalizeLocal( KDirInfo * ) ) );

    connect( this,  SIGNAL( selectionChanged( KFileInfo * ) ),
           _tree, SLOT  ( selectItem      ( KFileInfo * ) ) );

    connect( _tree, SIGNAL( selectionChanged( KFileInfo * ) ),
           this,  SLOT  ( selectItem      ( KFileInfo * ) ) );
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index