QMLPlayer should be QApplication
Replaced QGuiApplication by QApplication; else pressing the open file button results in a crash with this message: Fatal: QWidget: Cannot create a QWidget without QApplication Based the .pro change on player.pro. Gbp-Pq: Name 0002-QMLPlayer-should-be-QApplication.patch
This commit is contained in:
parent
777cb77763
commit
1512a9d482
|
@ -3,6 +3,7 @@ QT += sql
|
|||
android {
|
||||
QT += androidextras
|
||||
}
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
*maemo*: DEFINES += Q_OS_MAEMO
|
||||
# Add more folders to ship with the application, here
|
||||
folder_01.source = qml/QMLPlayer
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <QtCore/QtDebug>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QFile>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QApplication>
|
||||
#include <QQuickItem>
|
||||
#include <QtQml/QQmlEngine>
|
||||
#include <QtQml/QQmlContext>
|
||||
|
@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
|||
Config::setName(QString::fromLatin1("QMLPlayer"));
|
||||
do_common_options_before_qapp(options);
|
||||
|
||||
QGuiApplication app(argc, argv);
|
||||
QApplication app(argc, argv);
|
||||
app.setApplicationName(QStringLiteral("QMLPlayer"));
|
||||
app.setApplicationDisplayName(QStringLiteral("QtAV QMLPlayer"));
|
||||
QDir::setCurrent(qApp->applicationDirPath());
|
||||
|
|
Loading…
Reference in New Issue