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

Method patchChanged

plugins/patchreview/patchreviewtoolview.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void PatchReviewToolView::patchChanged() {
128 fillEditFromPatch();
129 kompareModelChanged();
130
131#ifdef WITH_PURPOSE
132 IPatchSource::Ptr p = m_plugin->patch();
133 if (p) {
134 m_exportMenu->model()->setInputData(QJsonObject {
135 { QStringLiteral("urls"), QJsonArray { p->file().toString() } },
136 { QStringLiteral("mimeType"), { QStringLiteral("text/x-patch") } },
137 { QStringLiteral("localBaseDir"), { p->baseDir().toString() } },
138 { QStringLiteral("updateComment"), { QStringLiteral("Patch updated through KDevelop's Patch Review plugin") } }
139 });
140 }
141#endif
142}
143
144PatchReviewToolView::~PatchReviewToolView()
145{

Callers

nothing calls this directly

Calls 5

patchMethod · 0.80
modelMethod · 0.45
toStringMethod · 0.45
fileMethod · 0.45
baseDirMethod · 0.45

Tested by

no test coverage detected