mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +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:
@@ -11,7 +11,6 @@
|
||||
#include "blackmisc/blackmiscfreefunctions.h"
|
||||
#include "blackmisc/aviation/atcstationlist.h"
|
||||
#include <QDebug>
|
||||
#include <QGuiApplication>
|
||||
#include <QMetaType>
|
||||
|
||||
using namespace BlackMisc::Aviation;
|
||||
@@ -21,17 +20,10 @@ using namespace BlackMisc::Network;
|
||||
|
||||
namespace BlackMiscTest
|
||||
{
|
||||
|
||||
/*
|
||||
* Samples
|
||||
*/
|
||||
int CSamplesMetadata::samples()
|
||||
{
|
||||
int argv = 0;
|
||||
QTextStream cin(stdin);
|
||||
QTextStream cout(stdout);
|
||||
QGuiApplication dummy(argv, nullptr); // otherwise no QPixmap metadata
|
||||
Q_UNUSED(dummy);
|
||||
BlackMisc::registerMetadata();
|
||||
BlackMisc::displayAllUserMetatypesTypes(cout);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user