From 9d14d9c7214a4e15a27e91d827a29684ec2ec32a Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Wed, 1 Jul 2015 10:43:33 -0700 Subject: [PATCH] Remove QSerialPortInfo from mobile build This is needed for firmware upgrade which is not part of mobile --- src/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cc b/src/main.cc index 8c097575c..47fc27fca 100644 --- a/src/main.cc +++ b/src/main.cc @@ -30,7 +30,9 @@ This file is part of the QGROUNDCONTROL project #include #include +#ifndef __mobile__ #include +#endif #include "QGCApplication.h" #include "MainWindow.h" @@ -50,7 +52,9 @@ This file is part of the QGROUNDCONTROL project #undef main #endif +#ifndef __mobile__ Q_DECLARE_METATYPE(QSerialPortInfo) +#endif #ifdef Q_OS_WIN @@ -109,7 +113,9 @@ int main(int argc, char *argv[]) qRegisterMetaType(); #endif qRegisterMetaType(); +#ifndef __mobile__ qRegisterMetaType(); +#endif // We statically link to the google QtLocation plugin -- 2.22.0