rewrite work continued

This commit is contained in:
itsmattkc
2019-03-30 03:09:43 +11:00
parent 1fdac776d4
commit 114606c28e
25 changed files with 692 additions and 397 deletions
+9 -1
View File
@@ -32,7 +32,7 @@
#include <QInputDialog>
#include <QCoreApplication>
void draw_marker(QPainter &p, int x, int y, int bottom, bool selected) {
void Marker::Draw(QPainter &p, int x, int y, int bottom, bool selected) {
const QPoint points[5] = {
QPoint(x, bottom),
QPoint(x + MARKER_SIZE, bottom - MARKER_SIZE),
@@ -126,3 +126,11 @@ void set_marker_internal(Sequence *seq) {
set_marker_internal(seq, clips);
}
void Marker::Save(QXmlStreamWriter &stream) const
{
stream.writeStartElement("marker");
stream.writeAttribute("frame", QString::number(frame));
stream.writeAttribute("name", name);
stream.writeEndElement();
}