Commit a83d560c authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Re-introduce dtkLog layer and adapt support layers to it.

parent f3becc65
......@@ -4,9 +4,9 @@
## Copyright (C) 2008 - Julien Wintz, Inria.
## Created: Mon Jul 20 18:39:20 2009 (+0200)
## Version: $Id$
## Last-Updated: lun. févr. 3 14:25:58 2014 (+0100)
## By: Nicolas Niclausse
## Update #: 401
## Last-Updated: lun. févr. 3 15:59:49 2014 (+0100)
## By: Thibaud Kloczko
## Update #: 404
######################################################################
##
### Commentary:
......
......@@ -4,9 +4,9 @@
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Fri Nov 7 16:01:09 2008 (+0100)
* Version: $Id$
* Last-Updated: lun. févr. 3 13:39:50 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 493
* Last-Updated: lun. févr. 3 16:48:58 2014 (+0100)
* By: Thibaud Kloczko
* Update #: 502
*/
/* Commentary:
......@@ -26,7 +26,7 @@
#include "dtkAbstractDataSerializer.h"
#include "dtkAbstractDataDeserializer.h"
#include <dtkLog/dtkLog.h>
#include <dtkLog/dtkLog>
#include <QtWidgets>
......@@ -142,7 +142,7 @@ void dtkAbstractData::copy(const dtkAbstractObject& other)
d->thumbnails = data.d_func()->thumbnails;
} else {
dtkWarn() << "Other is not of same type than this, slicing is occuring.";
dtkWarning(dtkLoggingCategory::defaultCategory()) << "Other is not of same type than this, slicing is occuring.";
}
}
......@@ -266,7 +266,7 @@ void dtkAbstractData::enableReader(const QString& reader)
if (it != d->readers.end())
it.value() = true;
else
dtkDebug() << this->identifier() << " has no such reader: " << reader;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->identifier() << " has no such reader: " << reader;
}
void dtkAbstractData::disableReader(const QString& reader)
......@@ -288,7 +288,7 @@ void dtkAbstractData::enableWriter(const QString& writer)
if (it != d->writers.end())
it.value() = true;
else
dtkDebug() << this->identifier() << " has no such writer: " << writer;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->identifier() << " has no such writer: " << writer;
}
void dtkAbstractData::disableWriter(const QString& writer)
......@@ -310,7 +310,7 @@ void dtkAbstractData::enableConverter(const QString& converter)
if (it != d->converters.end())
it.value() = true;
else
dtkDebug() << this->identifier() << " has no such converter: " << converter;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->identifier() << " has no such converter: " << converter;
}
void dtkAbstractData::disableConverter(const QString& converter)
......@@ -332,7 +332,7 @@ void dtkAbstractData::enableSerializer(const QString& serializer)
if (it != d->serializers.end())
it.value() = true;
else
dtkDebug() << this->identifier() << " has no such serializer: " << serializer;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->identifier() << " has no such serializer: " << serializer;
}
void dtkAbstractData::disableSerializer(const QString& serializer)
......@@ -354,7 +354,7 @@ void dtkAbstractData::enableDeserializer(const QString& deserializer)
if (it != d->deserializers.end())
it.value() = true;
else
dtkDebug() << this->identifier() << " has no such deserializer: " << deserializer;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->identifier() << " has no such deserializer: " << deserializer;
}
void dtkAbstractData::disableDeserializer(const QString& deserializer)
......@@ -444,7 +444,7 @@ void dtkAbstractData::setNumberOfChannels(int number)
void dtkAbstractData::update(void)
{
DTK_DEFAULT_IMPLEMENTATION;
//DTK_DEFAULT_IMPLEMENTATION;
}
bool dtkAbstractData::read(const QString& file)
......@@ -649,7 +649,7 @@ dtkAbstractData *dtkAbstractData::deserialize(const QByteArray &array)
deserialized = deserializer->deserialize(array);
if(!deserialized)
dtkDebug() << "deserializer failed, try another one ...";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "deserializer failed, try another one ...";
else
break;
}
......@@ -697,158 +697,158 @@ QList<QImage>& dtkAbstractData::thumbnails(void)
void *dtkAbstractData::output(void)
{
DTK_DEFAULT_IMPLEMENTATION;
//DTK_DEFAULT_IMPLEMENTATION;
return NULL;
}
void *dtkAbstractData::output(int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(channel);
return NULL;
}
void *dtkAbstractData::data(void)
{
DTK_DEFAULT_IMPLEMENTATION;
//DTK_DEFAULT_IMPLEMENTATION;
return NULL;
}
void *dtkAbstractData::data(int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(channel);
return NULL;
}
double dtkAbstractData::parameter(int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(channel);
return -1;
}
void dtkAbstractData::setParameter(int parameter)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
}
void dtkAbstractData::setParameter(int parameter, int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
Q_UNUSED(channel);
}
void dtkAbstractData::setParameter(qlonglong parameter)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
}
void dtkAbstractData::setParameter(qlonglong parameter, int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
Q_UNUSED(channel);
}
void dtkAbstractData::setParameter(float parameter)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
}
void dtkAbstractData::setParameter(float parameter, int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
Q_UNUSED(channel);
}
void dtkAbstractData::setParameter(double parameter)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
}
void dtkAbstractData::setParameter(double parameter, int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
Q_UNUSED(channel);
}
void dtkAbstractData::setParameter(const QString& parameter)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
}
void dtkAbstractData::setParameter(const QString& parameter, int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
Q_UNUSED(channel);
}
void dtkAbstractData::setParameter(dtkAbstractData *parameter)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
}
void dtkAbstractData::setParameter(dtkAbstractData *parameter, int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(parameter);
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(parameter);
Q_UNUSED(channel);
}
// void dtkAbstractData::setParameter(dtkVectorReal parameter)
// {
// DTK_DEFAULT_IMPLEMENTATION;
// DTK_UNUSED(parameter);
// //DTK_DEFAULT_IMPLEMENTATION;
// Q_UNUSED(parameter);
// }
// void dtkAbstractData::setParameter(dtkVectorReal parameter, int channel)
// {
// DTK_DEFAULT_IMPLEMENTATION;
// DTK_UNUSED(parameter);
// DTK_UNUSED(channel);
// //DTK_DEFAULT_IMPLEMENTATION;
// Q_UNUSED(parameter);
// Q_UNUSED(channel);
// }
void dtkAbstractData::setData(void* data)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(data);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(data);
}
void dtkAbstractData::setData(void* data, int channel)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(data);
DTK_UNUSED(channel);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(data);
Q_UNUSED(channel);
}
QVariant dtkAbstractData::toVariant(dtkAbstractData *data)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(data);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(data);
return qVariantFromValue(*data);
}
dtkAbstractData *dtkAbstractData::fromVariant(const QVariant& v)
{
DTK_DEFAULT_IMPLEMENTATION;
DTK_UNUSED(v);
//DTK_DEFAULT_IMPLEMENTATION;
Q_UNUSED(v);
return NULL;
}
......
......@@ -4,9 +4,9 @@
* Copyright (C) 2011 - Thibaud Kloczko, Inria.
* Created: Wed Sep 21 13:46:31 2011 (+0200)
* Version: $Id$
* Last-Updated: lun. févr. 3 14:10:05 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 266
* Last-Updated: lun. févr. 3 15:58:28 2014 (+0100)
* By: Thibaud Kloczko
* Update #: 267
*/
/* Commentary:
......@@ -24,7 +24,7 @@
#include "dtkCoreSupportExport.h"
#include "dtkGlobal.h"
#include <dtkLog/dtkLog.h>
#include <dtkLog/dtkLogger.h>
class dtkAbstractDataCompositePrivate;
......
......@@ -4,9 +4,9 @@
* Copyright (C) 2011 - Thibaud Kloczko, Inria.
* Created: Thu Sep 22 14:34:08 2011 (+0200)
* Version: $Id$
* Last-Updated: Wed Apr 4 10:29:28 2012 (+0200)
* By: tkloczko
* Update #: 187
* Last-Updated: lun. févr. 3 16:51:39 2014 (+0100)
* By: Thibaud Kloczko
* Update #: 188
*/
/* Commentary:
......@@ -34,13 +34,13 @@
template <typename T> const QVector<dtkAbstractData *>& dtkUpCastIntoDataVector(const QVector<T>& vector)
{
if (vector.isEmpty()) {
dtkDebug() << "Input vector is empty. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is empty. Casting failed. Returns empty vector.";
return *(new QVector<dtkAbstractData *>());
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(vector.at(0));
if (!data) {
dtkDebug() << "Input vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
return *(new QVector<dtkAbstractData *>());
}
......@@ -56,13 +56,13 @@ template <typename T> const QVector<dtkAbstractData *>& dtkUpCastIntoDataVector(
template <typename T> QVector<dtkAbstractData *>& dtkUpCastIntoDataVector(QVector<T>& vector)
{
if (vector.isEmpty()) {
dtkDebug() << "Input vector is empty. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is empty. Casting failed. Returns empty vector.";
return *(new QVector<dtkAbstractData *>());
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(vector.at(0));
if (!data) {
dtkDebug() << "Input vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
return *(new QVector<dtkAbstractData *>());
}
......@@ -79,13 +79,13 @@ template <typename T> QVector<dtkAbstractData *>& dtkUpCastIntoDataVector(QVecto
template <typename T> const QList<dtkAbstractData *>& dtkUpCastIntoDataList(const QList<T>& list)
{
if (list.isEmpty()) {
dtkDebug() << "Input list is empty. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is empty. Casting failed. Returns empty list.";
return *(new QList<dtkAbstractData *>());
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(list.at(0));
if (!data) {
dtkDebug() << "Input list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
return *(new QList<dtkAbstractData *>());
}
......@@ -101,13 +101,13 @@ template <typename T> const QList<dtkAbstractData *>& dtkUpCastIntoDataList(cons
template <typename T> QList<dtkAbstractData *>& dtkUpCastIntoDataList(QList<T>& list)
{
if (list.isEmpty()) {
dtkDebug() << "Input list is empty. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is empty. Casting failed. Returns empty list.";
return *(new QList<dtkAbstractData *>());
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(list.at(0));
if (!data) {
dtkDebug() << "Input list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
return *(new QList<dtkAbstractData *>());
}
......@@ -124,13 +124,13 @@ template <typename T> QList<dtkAbstractData *>& dtkUpCastIntoDataList(QList<T>&
template <typename T> const QVector<T>& dtkDownCastFromDataVector(const QVector<dtkAbstractData *>& vector)
{
if (vector.isEmpty()) {
dtkDebug() << "Input vector is empty. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is empty. Casting failed. Returns empty vector.";
return *(new QVector<T>());
}
T data = dynamic_cast<T>(vector.at(0));
if (!data) {
dtkDebug() << "Output vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Output vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
return *(new QVector<T>());
}
......@@ -146,13 +146,13 @@ template <typename T> const QVector<T>& dtkDownCastFromDataVector(const QVector<
template <typename T> QVector<T>& dtkDownCastFromDataVector(QVector<dtkAbstractData *>& vector)
{
if (vector.isEmpty()) {
dtkDebug() << "Input vector is empty. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is empty. Casting failed. Returns empty vector.";
return *(new QVector<T>());
}
T data = qobject_cast<T>(vector.at(0));
if (!data) {
dtkDebug() << "Output vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Output vector is not made of dtkAbstractData*. Casting failed. Returns empty vector.";
return *(new QVector<T>());
}
......@@ -169,13 +169,13 @@ template <typename T> QVector<T>& dtkDownCastFromDataVector(QVector<dtkAbstractD
template <typename T> const QList<T>& dtkDownCastFromDataList(const QList<dtkAbstractData *>& list)
{
if (list.isEmpty()) {
dtkDebug() << "Input list is empty. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is empty. Casting failed. Returns empty list.";
return *(new QList<T>());
}
T data = qobject_cast<T>(list.at(0));
if (!data) {
dtkDebug() << "Output list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Output list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
return *(new QList<T>());
}
......@@ -191,13 +191,13 @@ template <typename T> const QList<T>& dtkDownCastFromDataList(const QList<dtkAbs
template <typename T> QList<T>& dtkDownCastFromDataList(QList<dtkAbstractData *>& list)
{
if (list.isEmpty()) {
dtkDebug() << "Input list is empty. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is empty. Casting failed. Returns empty list.";
return *(new QList<T>());
}
T data = qobject_cast<T>(list.at(0));
if (!data) {
dtkDebug() << "Output list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Output list is not made of dtkAbstractData*. Casting failed. Returns empty list.";
return *(new QList<T>());
}
......@@ -212,13 +212,13 @@ template <typename T> QList<T>& dtkDownCastFromDataList(QList<dtkAbstractData *>
template <typename T> dtkAbstractDataComposite *dtkAbstractDataCompositeFromVectorCopy(const QVector<T>& vector)
{
if (vector.isEmpty()) {
dtkDebug() << "Input vector is empty. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is empty. Creation failed. Returns empty composite.";
return NULL;
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(vector.at(0));
if (!data) {
dtkDebug() << "Input vector is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
return NULL;
}
......@@ -233,13 +233,13 @@ template <typename T> dtkAbstractDataComposite *dtkAbstractDataCompositeFromVect
template <typename T> dtkAbstractDataComposite *dtkAbstractDataCompositeFromVectorCopy(QVector<T>& vector)
{
if (vector.isEmpty()) {
dtkDebug() << "Input vector is empty. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is empty. Creation failed. Returns empty composite.";
return NULL;
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(vector.at(0));
if (!data) {
dtkDebug() << "Input vector is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input vector is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
return NULL;
}
......@@ -254,13 +254,13 @@ template <typename T> dtkAbstractDataComposite *dtkAbstractDataCompositeFromVect
template <typename T> dtkAbstractDataComposite *dtkAbstractDataCompositeFromListCopy(const QList<T>& list)
{
if (list.isEmpty()) {
dtkDebug() << "Input list is empty. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is empty. Creation failed. Returns empty composite.";
return NULL;
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(list.at(0));
if (!data) {
dtkDebug() << "Input list is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
return NULL;
}
......@@ -275,13 +275,13 @@ template <typename T> dtkAbstractDataComposite *dtkAbstractDataCompositeFromList
template <typename T> dtkAbstractDataComposite *dtkAbstractDataCompositeFromListCopy(QList<T>& list)
{
if (list.isEmpty()) {
dtkDebug() << "Input list is empty. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is empty. Creation failed. Returns empty composite.";
return NULL;
}
dtkAbstractData *data = qobject_cast<dtkAbstractData *>(list.at(0));
if (!data) {
dtkDebug() << "Input list is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Input list is not made of dtkAbstractData*. Creation failed. Returns empty composite.";
return NULL;
}
......
......@@ -4,9 +4,9 @@
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Sat Feb 28 17:54:04 2009 (+0100)
* Version: $Id$
* Last-Updated: lun. févr. 3 14:20:19 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 276
* Last-Updated: lun. févr. 3 16:51:49 2014 (+0100)
* By: Thibaud Kloczko
* Update #: 281
*/
/* Commentary:
......@@ -20,7 +20,7 @@
#include "dtkAbstractObject.h"
#include "dtkAbstractObject_p.h"
#include <dtkLog/dtkLog.h>
#include <dtkLog/dtkLogger.h>
// /////////////////////////////////////////////////////////////////
// dtkAbstractObject implementation
......@@ -61,7 +61,7 @@ dtkAbstractObject::dtkAbstractObject(const dtkAbstractObject& other) : QObject(o
dtkAbstractObject::~dtkAbstractObject(void)
{
if ( d_ptr->count.deref()){
dtkDebug() << "Warning : deleting object of type " << this->metaObject()->className() << " with non-zero reference count";
dtkDebug(dtkLoggingCategory::defaultCategory()) << "Warning : deleting object of type " << this->metaObject()->className() << " with non-zero reference count";
}
delete d_ptr;
......@@ -218,14 +218,14 @@ bool dtkAbstractObject::isEqual(const dtkAbstractObject& other) const
QString dtkAbstractObject::description(void) const
{
DTK_DEFAULT_IMPLEMENTATION;
//DTK_DEFAULT_IMPLEMENTATION;
return "";
}
QString dtkAbstractObject::identifier(void) const
{
DTK_DEFAULT_IMPLEMENTATION;
//DTK_DEFAULT_IMPLEMENTATION;
return "";
}
......@@ -311,12 +311,12 @@ void dtkAbstractObject::addProperty(const QString& key, const QString& value)
void dtkAbstractObject::setProperty(const QString& key, const QString& value)
{
if(!d_ptr->values.contains(key)) {
dtkDebug() << this->metaObject()->className() << " has no such property:" << key;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->metaObject()->className() << " has no such property:" << key;
return;
}
if(!d_ptr->values.value(key).contains(value)) {
dtkDebug() << this->metaObject()->className() << " has no such value:" << value << " for key: " << key;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->metaObject()->className() << " has no such value:" << value << " for key: " << key;
return;
}
......@@ -348,7 +348,7 @@ bool dtkAbstractObject::hasProperty(const QString& key) const
QString dtkAbstractObject::property(const QString& key) const
{
if(!d_ptr->values.contains(key)) {
dtkDebug() << this->metaObject()->className() << "has no such property:" << key;
dtkDebug(dtkLoggingCategory::defaultCategory()) << this->metaObject()->className() << "has no such property:" << key;
return QString();
}
......@@ -419,20 +419,20 @@ bool dtkAbstractObject::hasMetaData(const QString& key) const