Commit 9c56f24f authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Remove useless QmlCssDecoration

parent 3482e33b
......@@ -243,19 +243,6 @@ void QmlCssFont::outputContent (QString & output) const {
m_family.exportOutput (output);
}
QmlCssDecoration::QmlCssDecoration (const QString & prefix, QObject * parent)
: QmlExportableInterface (parent)
, m_color (QS ("%1-color").arg (prefix))
, m_line (QS ("%1-line").arg (prefix))
, m_style (QS ("%1-style").arg (prefix))
{ }
void QmlCssDecoration::outputContent (QString & output) const {
m_color.exportOutput (output);
m_line.exportOutput (output);
m_style.exportOutput (output);
}
QmlCssText::QmlCssText (const QString & prefix, QObject * parent)
: QmlExportableInterface (parent)
, m_decoration (QS ("%1-decoration").arg (prefix))
......
......@@ -216,19 +216,6 @@ protected:
void outputContent (QString & output) const Q_DECL_OVERRIDE;
};
class QmlCssDecoration : public QmlExportableInterface {
Q_OBJECT
QML_CSS_PROPERTY (color)
QML_CSS_PROPERTY (line)
QML_CSS_PROPERTY (style)
public:
explicit QmlCssDecoration (const QString & prefix, QObject * parent = Q_NULLPTR);
protected:
void outputContent (QString & output) const Q_DECL_OVERRIDE;
};
class QmlCssText : public QmlExportableInterface {
Q_OBJECT
QML_CSS_PROPERTY (decoration)
......
......@@ -187,7 +187,6 @@ void QmlHttpServer::registerQmlTypes (void) {
qmlRegisterUncreatableType<QmlCssBorderSide> (uri, maj, min, "CssBorderSide", err);
qmlRegisterUncreatableType<QmlCssBoxShadow> (uri, maj, min, "CssBoxShadow", err);
qmlRegisterUncreatableType<QmlCssCounter> (uri, maj, min, "CssCounter", err);
qmlRegisterUncreatableType<QmlCssDecoration> (uri, maj, min, "CssDecoration", err);
qmlRegisterUncreatableType<QmlCssFont> (uri, maj, min, "CssFont", err);
qmlRegisterUncreatableType<QmlCssListStyle> (uri, maj, min, "CssListStyle", err);
qmlRegisterUncreatableType<QmlCssText> (uri, maj, min, "CssText", err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment