Commit 4f6cde07 authored by Don Gagne's avatar Don Gagne

Merge pull request #1443 from DonLakeFlyer/UnusedCode

Remove unused code
parents 951762ee f0b1f0a5
...@@ -784,41 +784,6 @@ void MainWindow::configureWindowName() ...@@ -784,41 +784,6 @@ void MainWindow::configureWindowName()
setWindowTitle(windowname); 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) void MainWindow::enableAutoReconnect(bool enabled)
{ {
_autoReconnect = enabled; _autoReconnect = enabled;
......
...@@ -141,9 +141,6 @@ public slots: ...@@ -141,9 +141,6 @@ public slots:
void UASDeleted(UASInterface* uas); void UASDeleted(UASInterface* uas);
/** @brief Update system specs of a UAS */ /** @brief Update system specs of a UAS */
void UASSpecsChanged(int uas); void UASSpecsChanged(int uas);
void startVideoCapture();
void stopVideoCapture();
void saveScreen();
void handleMisconfiguration(UASInterface* uas); void handleMisconfiguration(UASInterface* uas);
/** @brief Load configuration views */ /** @brief Load configuration views */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment