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

void Main_window::setMovingMode ( bool  isMovingMode )

Set if copy or moving mode.

Parameters:
isMovingModeIf true is in the moving mode

Definition at line 904 of file Mwindow.cpp.

References addEntryToDirList(), AddingFolderThread, CopyThread, movingMode, and copyThread::setMovingMode().

{
      DEBUGCONSOLE(90,"Main_window::setMovingMode","start");
      movingMode=isMovingMode;
      if(movingMode)
      {
            CopyThread->setMovingMode(movingMode);
                //do that's because the slot need be connected only in moving mode
            //disconnect if connected
            disconnect(AddingFolderThread, SIGNAL(putToSourceDirList(QDir)), CopyThread, SLOT(addEntryToDirList(QDir)));
            //reconnect
            connect(AddingFolderThread, SIGNAL(putToSourceDirList(QDir)), CopyThread, SLOT(addEntryToDirList(QDir)));
      }
        else
        {
            //disconnect if connected because useless in copy mode
            disconnect(AddingFolderThread, SIGNAL(putToSourceDirList(QDir)), CopyThread, SLOT(addEntryToDirList(QDir)));
        }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index