| 1126 | } |
| 1127 | |
| 1128 | void 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 | |
| 1144 | void WorkspaceWidget::replaceSelectedText(const QString &text) |
| 1145 | { |
no test coverage detected