コード例 #1
0
    void MainWindow::stopScript()
    {
        QueryWidget *widget = _workArea->currentQueryWidget();
        if (!widget)
            return;

        widget->stop();
    }
コード例 #2
0
ファイル: WorkAreaWidget.cpp プロジェクト: eugenkr/robomongo
 void WorkAreaWidget::stopScript()
 {
     QueryWidget *currentWidget = (QueryWidget *)_tabWidget->currentWidget();
     if (currentWidget)
         currentWidget->stop();
 }