mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-10 03:16:09 +08:00
Fixed samples:
* use QGuiApplication in main so GUI metadata are available * parent for thread sample, otherwise ASSERT Remark: some issue are Qt 5.4 update related
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QGuiApplication>
|
||||
#include "sampleschangeobject.h"
|
||||
#include "samplesmetadata.h"
|
||||
#include "samplescontainer.h"
|
||||
@@ -21,12 +21,12 @@
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMiscTest;
|
||||
|
||||
/*!
|
||||
* Sample tests
|
||||
*/
|
||||
//! Sample tests
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);;
|
||||
// I use QGuiApplication and not core application
|
||||
// otherwise no QPixmap metadata (metadata sample)
|
||||
QGuiApplication a(argc, argv);
|
||||
Q_UNUSED(a);
|
||||
|
||||
QTextStream qtout(stdout);
|
||||
|
||||
Reference in New Issue
Block a user