Browse Source

Remove unused code

QGC4.4
Don Gagne 10 years ago
parent
commit
f0b1f0a561
  1. 35
      src/ui/MainWindow.cc
  2. 3
      src/ui/MainWindow.h

35
src/ui/MainWindow.cc

@ -784,41 +784,6 @@ void MainWindow::configureWindowName() @@ -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;

3
src/ui/MainWindow.h

@ -139,9 +139,6 @@ public slots: @@ -139,9 +139,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 */

Loading…
Cancel
Save