Fix build on Ubuntu 14.04

This commit is contained in:
Alexandre Quessy
2016-10-12 08:36:29 -04:00
parent d6a3686861
commit e85741d6c3
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -506,6 +506,7 @@ void MainWindow::importMedia()
void MainWindow::openCameraDevice()
{
#if QT_VERSION >= 0x050500
QString device;
QList<QCameraInfo> cameras = QCameraInfo::availableCameras();
@@ -543,6 +544,9 @@ void MainWindow::openCameraDevice()
if (!device.isEmpty())
importMediaFile(device, false);
#else
QMessageBox::warning(this, tr("No camera available"), tr("You can not use this feature!\nNo camera available in your system"));
#endif
}
void MainWindow::addColor()