mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
[OP-835] Qt 5.1.0 - migrated GCS main
This commit is contained in:
parent
4fd04d38f3
commit
5ced372f7d
@ -4,7 +4,9 @@ include(../shared/qtsingleapplication/qtsingleapplication.pri)
|
||||
TEMPLATE = app
|
||||
TARGET = $$GCS_APP_TARGET
|
||||
DESTDIR = $$GCS_APP_PATH
|
||||
QT += xml
|
||||
|
||||
QT += xml widgets
|
||||
|
||||
SOURCES += main.cpp \
|
||||
gcssplashscreen.cpp
|
||||
|
||||
|
@ -86,6 +86,7 @@
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QElapsedTimer>
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtCore/QFileInfo>
|
||||
@ -96,10 +97,10 @@
|
||||
#include <QtCore/QSettings>
|
||||
#include <QtCore/QVariant>
|
||||
|
||||
#include <QtGui/QMessageBox>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QtGui/QSplashScreen>
|
||||
#include <QMessageBox>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QMainWindow>
|
||||
#include <QSplashScreen>
|
||||
|
||||
namespace {
|
||||
typedef QList<ExtensionSystem::PluginSpec *> PluginSpecSet;
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include "qtsingleapplication.h"
|
||||
#include "qtlocalpeer.h"
|
||||
|
||||
#include <QtGui/QWidget>
|
||||
#include <QtGui/QFileOpenEvent>
|
||||
#include <QWidget>
|
||||
#include <QFileOpenEvent>
|
||||
|
||||
namespace SharedTools {
|
||||
void QtSingleApplication::sysInit(const QString &appId)
|
||||
@ -54,14 +54,6 @@ QtSingleApplication::QtSingleApplication(const QString &appId, int &argc, char *
|
||||
sysInit(appId);
|
||||
}
|
||||
|
||||
|
||||
QtSingleApplication::QtSingleApplication(int &argc, char * *argv, Type type)
|
||||
: QApplication(argc, argv, type)
|
||||
{
|
||||
sysInit();
|
||||
}
|
||||
|
||||
|
||||
#if defined(Q_WS_X11)
|
||||
QtSingleApplication::QtSingleApplication(Display *dpy, Qt::HANDLE visual, Qt::HANDLE colormap)
|
||||
: QApplication(dpy, visual, colormap)
|
||||
|
@ -26,7 +26,7 @@
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
namespace SharedTools {
|
||||
class QtLocalPeer;
|
||||
@ -37,7 +37,6 @@ class QtSingleApplication : public QApplication {
|
||||
public:
|
||||
QtSingleApplication(int &argc, char * *argv, bool GUIenabled = true);
|
||||
QtSingleApplication(const QString &id, int &argc, char * *argv);
|
||||
QtSingleApplication(int &argc, char * *argv, Type type);
|
||||
#if defined(Q_WS_X11)
|
||||
QtSingleApplication(Display *dpy, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
|
||||
QtSingleApplication(Display *dpy, int &argc, char * *argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0);
|
||||
|
Loading…
Reference in New Issue
Block a user