mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Icon for sample_blackcore.pro
This commit is contained in:
@@ -8,10 +8,10 @@
|
|||||||
#include "blackcore/context_settings.h"
|
#include "blackcore/context_settings.h"
|
||||||
#include "tool.h"
|
#include "tool.h"
|
||||||
#include <QtConcurrent/QtConcurrent>
|
#include <QtConcurrent/QtConcurrent>
|
||||||
|
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QMetaMethod>
|
#include <QMetaMethod>
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QIcon>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* DBus tests, tests marshalling / unmarshalling of many value classes.
|
* DBus tests, tests marshalling / unmarshalling of many value classes.
|
||||||
@@ -20,7 +20,9 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
// metadata are registered in runtime
|
// metadata are registered in runtime
|
||||||
QCoreApplication a(argc, argv);
|
QApplication a(argc, argv); // not QCoreApplication because of icon, http://qt-project.org/forums/viewthread/15412
|
||||||
|
QIcon icon(":/blackcore/icons/tower.png");
|
||||||
|
QApplication::setWindowIcon(icon);
|
||||||
BlackCore::CRuntime *core = new BlackCore::CRuntime(BlackCore::CRuntimeConfig::forCore(), &a);
|
BlackCore::CRuntime *core = new BlackCore::CRuntime(BlackCore::CRuntimeConfig::forCore(), &a);
|
||||||
QtConcurrent::run(BlackMiscTest::Tool::serverLoop, core); // QFuture<void> future
|
QtConcurrent::run(BlackMiscTest::Tool::serverLoop, core); // QFuture<void> future
|
||||||
qDebug() << "Server event loop, pid:" << BlackMiscTest::Tool::getPid();
|
qDebug() << "Server event loop, pid:" << BlackMiscTest::Tool::getPid();
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
include (../../config.pri)
|
include (../../config.pri)
|
||||||
include (../../build.pri)
|
include (../../build.pri)
|
||||||
|
|
||||||
QT += core dbus network xml multimedia
|
# widgets required for icon
|
||||||
|
QT += core dbus network xml multimedia gui
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
TARGET = sample_blackcore
|
TARGET = sample_blackcore
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|||||||
Reference in New Issue
Block a user