Commit b8a79875 authored by Don Gagne's avatar Don Gagne

Merge pull request #1153 from DonLakeFlyer/QQuickWidgetFix

Don't use native widget siblings
parents cf777949 b85b9a21
...@@ -166,36 +166,40 @@ OSGDependency { ...@@ -166,36 +166,40 @@ OSGDependency {
# [OPTIONAL] Google Earth dependency. Provides Google Earth view to supplement 2D map view. # [OPTIONAL] Google Earth dependency. Provides Google Earth view to supplement 2D map view.
# Only supported on Mac and Windows where Google Earth can be installed. # Only supported on Mac and Windows where Google Earth can be installed.
# #
contains(DEFINES, DISABLE_GOOGLE_EARTH) { GoogleEarthDisableOverride {
message("Skipping support for Google Earth view (manual override from command line)") contains(DEFINES, DISABLE_GOOGLE_EARTH) {
DEFINES -= DISABLE_GOOGLE_EARTH message("Skipping support for Google Earth view (manual override from command line)")
} DEFINES -= DISABLE_GOOGLE_EARTH
# Otherwise the user can still disable this feature in the user_config.pri file. }
else:exists(user_config.pri):infile(user_config.pri, DEFINES, DISABLE_GOOGLE_EARTH) { # Otherwise the user can still disable this feature in the user_config.pri file.
message("Skipping support for Google Earth view (manual override from user_config.pri)") else:exists(user_config.pri):infile(user_config.pri, DEFINES, DISABLE_GOOGLE_EARTH) {
} else:MacBuild { message("Skipping support for Google Earth view (manual override from user_config.pri)")
message("Including support for Google Earth view") } else:MacBuild {
DEFINES += QGC_GOOGLE_EARTH_ENABLED message("Including support for Google Earth view")
HEADERS += src/ui/map3D/QGCGoogleEarthView.h \ DEFINES += QGC_GOOGLE_EARTH_ENABLED
src/ui/map3D/QGCWebPage.h \ HEADERS += src/ui/map3D/QGCGoogleEarthView.h \
src/ui/QGCWebView.h src/ui/map3D/QGCWebPage.h \
SOURCES += src/ui/map3D/QGCGoogleEarthView.cc \ src/ui/QGCWebView.h
src/ui/map3D/QGCWebPage.cc \ SOURCES += src/ui/map3D/QGCGoogleEarthView.cc \
src/ui/QGCWebView.cc src/ui/map3D/QGCWebPage.cc \
FORMS += src/ui/QGCWebView.ui src/ui/QGCWebView.cc
} else:WindowsBuild { FORMS += src/ui/QGCWebView.ui
message("Including support for Google Earth view") } else:WindowsBuild {
DEFINES += QGC_GOOGLE_EARTH_ENABLED message("Including support for Google Earth view")
HEADERS += src/ui/map3D/QGCGoogleEarthView.h \ DEFINES += QGC_GOOGLE_EARTH_ENABLED
src/ui/map3D/QGCWebPage.h \ HEADERS += src/ui/map3D/QGCGoogleEarthView.h \
src/ui/QGCWebView.h src/ui/map3D/QGCWebPage.h \
SOURCES += src/ui/map3D/QGCGoogleEarthView.cc \ src/ui/QGCWebView.h
src/ui/map3D/QGCWebPage.cc \ SOURCES += src/ui/map3D/QGCGoogleEarthView.cc \
src/ui/QGCWebView.cc src/ui/map3D/QGCWebPage.cc \
FORMS += src/ui/QGCWebView.ui src/ui/QGCWebView.cc
QT += axcontainer FORMS += src/ui/QGCWebView.ui
QT += axcontainer
} else {
message("Skipping support for Google Earth view (unsupported platform)")
}
} else { } else {
message("Skipping support for Google Earth view (unsupported platform)") message("Skipping support for Google Earth due to Issue 1157")
} }
# #
......
files/images/splash.png

25.2 KB | W: | H:

files/images/splash.png

17.6 KB | W: | H:

files/images/splash.png
files/images/splash.png
files/images/splash.png
files/images/splash.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -97,6 +97,8 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) : ...@@ -97,6 +97,8 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) :
Q_ASSERT(_app == NULL); Q_ASSERT(_app == NULL);
_app = this; _app = this;
// This prevents usage of QQuickWidget to fail since it doesn't support native widget siblings
setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
#ifdef QT_DEBUG #ifdef QT_DEBUG
// First thing we want to do is set up the qtlogging.ini file. If it doesn't already exist we copy // First thing we want to do is set up the qtlogging.ini file. If it doesn't already exist we copy
......
...@@ -30,6 +30,7 @@ QGCQmlWidgetHolder::QGCQmlWidgetHolder(QWidget *parent) : ...@@ -30,6 +30,7 @@ QGCQmlWidgetHolder::QGCQmlWidgetHolder(QWidget *parent) :
QWidget(parent) QWidget(parent)
{ {
_ui.setupUi(this); _ui.setupUi(this);
_ui.qmlWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
} }
QGCQmlWidgetHolder::~QGCQmlWidgetHolder() QGCQmlWidgetHolder::~QGCQmlWidgetHolder()
......
...@@ -49,6 +49,8 @@ SetupView::SetupView(QWidget* parent) : ...@@ -49,6 +49,8 @@ SetupView::SetupView(QWidget* parent) :
Q_UNUSED(fSucceeded); Q_UNUSED(fSucceeded);
Q_ASSERT(fSucceeded); Q_ASSERT(fSucceeded);
setResizeMode(SizeRootObjectToView);
_setActiveUAS(NULL); _setActiveUAS(NULL);
} }
......
...@@ -9,7 +9,6 @@ Rectangle { ...@@ -9,7 +9,6 @@ Rectangle {
id: topLevel id: topLevel
objectName: "topLevel" objectName: "topLevel"
anchors.fill: parent
color: palette.window color: palette.window
signal buttonClicked(variant component); signal buttonClicked(variant component);
......
...@@ -6,7 +6,6 @@ import QGroundControl.FactSystem 1.0 ...@@ -6,7 +6,6 @@ import QGroundControl.FactSystem 1.0
Rectangle { Rectangle {
QGCPalette { id: palette; colorGroup: QGCPalette.Active } QGCPalette { id: palette; colorGroup: QGCPalette.Active }
anchors.fill: parent
color: palette.window color: palette.window
Item { Item {
......
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