lets see whether this looks better
#include "trace_model.hpp"
#include <QDebug>
#include "trace_model.hpp"
#include <QDebug>
ApiPointer::ApiPointer(int val)
: m_value(val)
ApiPointer::ApiPointer(int val)
: m_value(val)
if (variant.userType() == QVariant::Double) {
return QString::number(variant.toFloat());
}
if (variant.userType() == QVariant::Double) {
return QString::number(variant.toFloat());
}
+ if (variant.userType() == QVariant::ByteArray) {
+ float kb = variant.toByteArray().size()/1024.;
+ return QObject::tr("[binary data, size = %1kb]").arg(kb);
+ }
if (variant.userType() < QVariant::UserType) {
return variant.toString();
if (variant.userType() < QVariant::UserType) {
return variant.toString();