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

Method setFilename

src/SourceData.cpp:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void SourceData::setFilename(const QString& filename)
74{
75 if(filename.isEmpty())
76 {
77 reset();
78 }
79 else
80 {
81 setFileAccess(FileAccess(filename));
82 }
83}
84
85bool SourceData::isEmpty() const
86{

Callers 11

runTestFunction · 0.80
KDiff3AppMethod · 0.80
slotFileOpenMethod · 0.80
slotFileOpen2Method · 0.80
initTestCaseMethod · 0.80
testReadMethod · 0.80
testEOLStyleMethod · 0.80
trailingEOLTestMethod · 0.80
testLineDataMethod · 0.80
testWhiteLineCommentMethod · 0.80

Calls 2

FileAccessClass · 0.70
isEmptyMethod · 0.45

Tested by 8

runTestFunction · 0.64
initTestCaseMethod · 0.64
testReadMethod · 0.64
testEOLStyleMethod · 0.64
trailingEOLTestMethod · 0.64
testLineDataMethod · 0.64
testWhiteLineCommentMethod · 0.64