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

void Main_window::writeThreadError ( const int  buttonActivated,
const QString &  file,
const QString &  errorString,
quint64  id 
) [slot]

function for write thread error

Parameters:
buttonActivatedThe button activated
fileThe file linked with the error
errorStringThe error string
idId of the item linked with the error, can by null

Definition at line 570 of file Mwindow.cpp.

References CopyThread, WriteThread::errorAction(), and errorManagement().

{
      WriteThread *theSenderObject=qobject_cast<WriteThread *>(QObject::sender());
      theSenderObject->errorAction(errorManagement(buttonActivated,file,errorString));
      CopyThread->resumeCopy();
      for (int j=0; j<theCopyItemExternal.size(); ++j) {
            if(theCopyItemExternal.at(j).id==id)
            {
                  if(CopyList->indexOfTopLevelItem(theCopyItemExternal.at(j).theGraphicIndex)==-1)
                  {
                        DEBUGCONSOLE(10,"Main_window::copyThreadError","Crash prevent, theCopyItemExternal.at("+QString::number(j)+").theGraphicIndex not found!");
                  }
                  else
                  {
                        QTreeWidgetItem *item = new QTreeWidgetItem(QStringList() << theCopyItemExternal.at(j).theGraphicIndex->text(0) << theCopyItemExternal.at(j).theGraphicIndex->text(1) << theCopyItemExternal.at(j).theGraphicIndex->text(2) << errorString);
                        //only if item is not removed after copier
                        //item->setIcon(0,loadImage("error.png"));
                        treeWidgetListError->addTopLevelItem(item);
                  }
            }
      }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index