MCPcopy Create free account
hub / github.com/KDE/kdiff3 / compareCurrentFile

Method compareCurrentFile

src/directorymergewindow.cpp:1863–1886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1861}
1862
1863void DirectoryMergeWindow::compareCurrentFile()
1864{
1865 if(!d->canContinue()) return;
1866
1867 if(d->m_bRealMergeStarted)
1868 {
1869 KMessageBox::error(this, i18n("This operation is currently not possible."), i18n("Operation Not Possible"));
1870 return;
1871 }
1872 QStringList errors;
1873 if(MergeFileInfos* pMFI = d->getMFI(currentIndex()))
1874 {
1875 if(!(pMFI->hasDir()))
1876 {
1877 Q_EMIT startDiffMerge(errors,
1878 pMFI->existsInA() ? pMFI->getFileInfoA()->absoluteFilePath() : QString(""),
1879 pMFI->existsInB() ? pMFI->getFileInfoB()->absoluteFilePath() : QString(""),
1880 pMFI->existsInC() ? pMFI->getFileInfoC()->absoluteFilePath() : QString(""),
1881 "",
1882 "", "", "", nullptr);
1883 }
1884 }
1885 Q_EMIT updateAvailabilities();
1886}
1887
1888void DirectoryMergeWindow::slotCompareExplicitlySelectedFiles()
1889{

Callers

nothing calls this directly

Calls 10

getMFIMethod · 0.80
hasDirMethod · 0.80
existsInAMethod · 0.80
getFileInfoAMethod · 0.80
existsInBMethod · 0.80
getFileInfoBMethod · 0.80
existsInCMethod · 0.80
getFileInfoCMethod · 0.80
canContinueMethod · 0.45
absoluteFilePathMethod · 0.45

Tested by

no test coverage detected