mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Fix build on Ubuntu 14.04
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user