diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 38f581a7a847fedce69b944200014f70c00221c6..6c7e1073a152fcda3b38e167a798f5741a315ebe 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -784,41 +784,6 @@ void MainWindow::configureWindowName() setWindowTitle(windowname); } -// TODO: This is not used -void MainWindow::startVideoCapture() -{ - // TODO: What is this? What kind of "Video" is saved to bmp? - QString format("bmp"); - QString initialPath = QDir::currentPath() + tr("/untitled.") + format; - _screenFileName = QGCFileDialog::getSaveFileName( - this, tr("Save Video Capture"), - initialPath, - tr("%1 Files (*.%2);;All Files (*)") - .arg(format.toUpper()) - .arg(format), - format); - delete videoTimer; - videoTimer = new QTimer(this); -} - -// TODO: This is not used -void MainWindow::stopVideoCapture() -{ - videoTimer->stop(); - // TODO Convert raw images to PNG -} - -// TODO: This is not used -void MainWindow::saveScreen() -{ - QPixmap window = QPixmap::grabWindow(this->winId()); - QString format = "bmp"; - if (!_screenFileName.isEmpty()) - { - window.save(_screenFileName, format.toLatin1()); - } -} - void MainWindow::enableAutoReconnect(bool enabled) { _autoReconnect = enabled; diff --git a/src/ui/MainWindow.h b/src/ui/MainWindow.h index 5421579fc18814a8b6a749bcc306ea2dc93048ec..95e449c089787c03ec7c99168915a44b54f3ab54 100644 --- a/src/ui/MainWindow.h +++ b/src/ui/MainWindow.h @@ -141,9 +141,6 @@ public slots: void UASDeleted(UASInterface* uas); /** @brief Update system specs of a UAS */ void UASSpecsChanged(int uas); - void startVideoCapture(); - void stopVideoCapture(); - void saveScreen(); void handleMisconfiguration(UASInterface* uas); /** @brief Load configuration views */