Icon for sample_blackcore.pro

This commit is contained in:
Klaus Basan
2014-04-02 12:27:30 +02:00
parent 5e8460e28f
commit 7e65193c32
2 changed files with 8 additions and 4 deletions

View File

@@ -8,10 +8,10 @@
#include "blackcore/context_settings.h"
#include "tool.h"
#include <QtConcurrent/QtConcurrent>
#include <QMetaType>
#include <QMetaMethod>
#include <QApplication>
#include <QIcon>
/*!
* DBus tests, tests marshalling / unmarshalling of many value classes.
@@ -20,7 +20,9 @@
int main(int argc, char *argv[])
{
// 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);
QtConcurrent::run(BlackMiscTest::Tool::serverLoop, core); // QFuture<void> future
qDebug() << "Server event loop, pid:" << BlackMiscTest::Tool::getPid();

View File

@@ -1,7 +1,9 @@
include (../../config.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
TEMPLATE = app