Commit 385d4362 authored by Bryant Mairs's avatar Bryant Mairs

QDesktopServices::storageLocation() moved to QStandardParths::writableLocation()

parent 14dbbd9b
#include <QFileDialog>
#include <QDesktopServices>
#include <QStandardPaths>
#include <QSettings>
#include "PX4FirmwareUpgrader.h"
......@@ -28,7 +28,7 @@ void PX4FirmwareUpgrader::selectFirmwareFile()
{
QSettings settings;
QString path = settings.value("PX4_FIRMWARE_PATH",
QDesktopServices::storageLocation(QDesktopServices::DesktopLocation)).toString();
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)).toString();
const QString widgetFileExtension(".px4");
QString fileName = QFileDialog::getOpenFileName(this, tr("Specify File Name"),
path,
......
#include "ImageryParamDialog.h"
#include <QDesktopServices>
#include <QStandardPaths>
#include <QFileDialog>
#include <QFormLayout>
#include <QGroupBox>
......@@ -79,7 +79,7 @@ void
ImageryParamDialog::selectPath(void)
{
QString filename = QFileDialog::getExistingDirectory(this, "Imagery path",
QDesktopServices::storageLocation(QDesktopServices::DesktopLocation));
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation));
if (filename.isNull())
{
return;
......
......@@ -595,7 +595,7 @@ void
Pixhawk3DWidget::loadTerrainModel(void)
{
QString filename = QFileDialog::getOpenFileName(this, "Load Terrain Model",
QDesktopServices::storageLocation(QDesktopServices::DesktopLocation),
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("Collada (*.dae)"));
if (filename.isNull())
......
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