void MainWindow::stopScript() { QueryWidget *widget = _workArea->currentQueryWidget(); if (!widget) return; widget->stop(); }
void WorkAreaWidget::stopScript() { QueryWidget *currentWidget = (QueryWidget *)_tabWidget->currentWidget(); if (currentWidget) currentWidget->stop(); }