MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / saveAs

Method saveAs

src/plugins/codeeditor/gui/workspacewidget.cpp:1128–1142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126}
1127
1128void WorkspaceWidget::saveAs(const QString &from, const QString &to)
1129{
1130 auto tmpTo = to;
1131 if (tmpTo.isEmpty()) {
1132 tmpTo = QFileDialog::getSaveFileName(this);
1133 if (tmpTo.isEmpty())
1134 return;
1135 }
1136
1137 Q_UNUSED(std::find_if(d->tabWidgetList.begin(), d->tabWidgetList.end(),
1138 [&](TabWidget *w) {
1139 return w->saveAs(from, tmpTo);
1140 });)
1141 Inotify::globalInstance()->addPath(tmpTo);
1142}
1143
1144void WorkspaceWidget::replaceSelectedText(const QString &text)
1145{

Callers 1

handleFileRemovedMethod · 0.45

Calls 4

isEmptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
addPathMethod · 0.45

Tested by

no test coverage detected