Imported existing sources
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#include "textstyle.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QJsonValue>
|
||||
|
||||
TextStyle::TextStyle(QObject *parent) :
|
||||
BaseContainer(parent),
|
||||
m_verticalAlignment(0.)
|
||||
{
|
||||
}
|
||||
|
||||
double TextStyle::verticalAlignment() const
|
||||
{
|
||||
return m_verticalAlignment;
|
||||
}
|
||||
|
||||
bool TextStyle::parseProperty(const QString &key, const QJsonValue &value)
|
||||
{
|
||||
if(key == QStringLiteral("verticalAlignment"))
|
||||
{
|
||||
Q_ASSERT(value.isDouble());
|
||||
m_verticalAlignment = value.toDouble();
|
||||
return true;
|
||||
}
|
||||
|
||||
if(key == QStringLiteral("encodedAttributes"))
|
||||
{
|
||||
//qWarning() << "encodedAttributes not implemented";
|
||||
return true;
|
||||
}
|
||||
|
||||
return BaseContainer::parseProperty(key, value);
|
||||
}
|
||||
Reference in New Issue
Block a user