void QDeclarativeVideoEditor::move(int from, int to) { qDebug() << "Moving media object from " << from << " to " << to; beginResetModel(); const VideoEditorItem *item = m_items.at(from); ges_simple_timeline_layer_move_object(GES_SIMPLE_TIMELINE_LAYER (m_timelineLayer), (GESTimelineObject *)item->getTlfs(), to); m_items.move(from, to); endResetModel(); }
static void ges_simple_timeline_layer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { GESSimpleTimelineLayer *self; self = GES_SIMPLE_TIMELINE_LAYER (object); switch (property_id) { case PROP_VALID: g_value_set_boolean (value, self->priv->valid); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); } }