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

Method conflictingFileTypes

src/MergeFileInfos.cpp:113–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool MergeFileInfos::conflictingFileTypes() const
114{
115 if((m_pFileInfoA != nullptr && !m_pFileInfoA->isNormal()) || (m_pFileInfoB != nullptr && !m_pFileInfoB->isNormal()) || (m_pFileInfoC != nullptr && !m_pFileInfoC->isNormal()))
116 return true;
117 // Now check if file/dir-types fit.
118 if(isLinkA() || isLinkB() || isLinkC())
119 {
120 if((existsInA() && !isLinkA()) ||
121 (existsInB() && !isLinkB()) ||
122 (existsInC() && !isLinkC()))
123 {
124 return true;
125 }
126 }
127
128 if(isDirA() || isDirB() || isDirC())
129 {
130 if((existsInA() && !isDirA()) ||
131 (existsInB() && !isDirB()) ||
132 (existsInC() && !isDirC()))
133 {
134 return true;
135 }
136 }
137 return false;
138}
139
140QString MergeFileInfos::fullNameA() const
141{

Callers 5

keyPressEventMethod · 0.80
mousePressEventMethod · 0.80
isFileSelectedMethod · 0.80
updateAvailabilitiesMethod · 0.80

Calls 1

isNormalMethod · 0.80

Tested by

no test coverage detected