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

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

function for copy 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 538 of file Mwindow.cpp.

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

Referenced by Main_window().

{
      CopyThread->errorAction(errorManagement(buttonActivated,file,errorString));
      if(id==0)
            return;
      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!");
                        QTreeWidgetItem *item = new QTreeWidgetItem(QStringList() << file << "0" << "" << errorString);
                        //only if item is not removed after copier
                        //item->setIcon(0,loadImage("error.png"));
                        treeWidgetListError->addTopLevelItem(item);
                  }
                  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:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index