MCPcopy Create free account
hub / github.com/KDE/kdevelop / modifiedDocuments

Method modifiedDocuments

kdevplatform/shell/documentcontroller.cpp:908–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908QList< IDocument * > KDevelop::DocumentController::modifiedDocuments(const QList< IDocument * > & list) const
909{
910 QList< IDocument * > ret;
911 for (IDocument* doc : list) {
912 if (doc->state() == IDocument::Modified || doc->state() == IDocument::DirtyAndModified)
913 ret.append(doc);
914 }
915 return ret;
916}
917
918bool DocumentController::saveAllDocumentsForWindow(KParts::MainWindow* mw, SaveSelectionMode mode, bool currentAreaOnly)
919{

Callers

nothing calls this directly

Calls 2

stateMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected