mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
This commit is contained in:
committed by
Mathew Sutcliffe
parent
2af30f1035
commit
f74794b4d7
@@ -1,15 +0,0 @@
|
||||
/* Copyright (C) 2013
|
||||
* swift Project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "blackmiscfreefunctions.h"
|
||||
|
||||
void BlackMisc::initResources()
|
||||
{
|
||||
initBlackMiscResources();
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
/* Copyright (C) 2013
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_FREEFUNCTIONS_H
|
||||
#define BLACKMISC_FREEFUNCTIONS_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include <QDir> // for Q_INIT_RESOURCE
|
||||
|
||||
/*!
|
||||
* Workaround, to call initResource from namespace. Used in BlackMisc::initResources().
|
||||
* Q_INIT_RESOURCE adds resource, here the translation files.
|
||||
*/
|
||||
inline void initBlackMiscResources()
|
||||
{
|
||||
// cannot be declared within namespace, see docu
|
||||
// hence BlackMisc::initResources() calls this inline function
|
||||
Q_INIT_RESOURCE(blackmisc);
|
||||
}
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
//! Init resources
|
||||
BLACKMISC_EXPORT void initResources();
|
||||
}
|
||||
|
||||
#endif // guard
|
||||
@@ -30,10 +30,18 @@
|
||||
#include "identifierlist.h"
|
||||
#include "logpattern.h"
|
||||
|
||||
void initBlackMiscResourcesImpl()
|
||||
{
|
||||
// cannot be declared within namespace, see docu
|
||||
Q_INIT_RESOURCE(blackmisc);
|
||||
}
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
void registerMetadata()
|
||||
{
|
||||
initBlackMiscResources();
|
||||
|
||||
CCountry::registerMetadata();
|
||||
CCountryList::registerMetadata();
|
||||
CIcon::registerMetadata();
|
||||
|
||||
Reference in New Issue
Block a user