6 : QPropertyAnimation(parent)
12 : QPropertyAnimation(target, name, parent)
28 setStartValue(QPoint(0, height));
29 setEndValue(QPoint(size.width(), height));
35 setEasingCurve(QEasingCurve::Linear);
71 for(
int i = 0; i <
m_labels.count(); ++i)
85 for(
int i = 0; i <
m_labels.count(); ++i)
94 for(
int i = 0; i <
m_labels.count(); ++i)
175 if(attr.m_key ==
"p")
177 attrValue = attr.m_value.
toString();
182 if(!attrValue.isEmpty())
184 const QStringList &keys = attrValue.split(
",");
190 const int size = keys[2].toInt();
206 record.
m_color = QColor(keys[3].toInt()).name();
239 QLabel *label =
new QLabel(
m_parent);
240 label->setStyleSheet(QString(
"QLabel{ color:%1; }").arg(record.
m_color));
241 label->setText(record.
m_value);
void setSize(const QSize &size)
The class of the ttk xml interface.
TTK_MODULE_EXPORT void initRandom()
The class of the barrage record item.
TTK_MODULE_EXPORT int random(int value=RAND_MAX)
void startToRequest(const QString &data)
bool fromByteArray(const QByteArray &data)
MusicBarrageAnimation(QObject *parent=nullptr)
The class of the ttk xml attribute.
The class of the ttk xml node.
TTKXmlNodeList readMultiNodeByTagName(const QString &tagName) const
The namespace of the barrage request interface.
The class of the barrage animation.
#define TTKObjectCast(x, y)