コード例 #1
0
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();
}
コード例 #2
0
ファイル: timeline.cpp プロジェクト: emdash/QT-GES-Demo
void Timeline::
move(int source, int dest, int n)
{
  GESTimelineObject *obj = ges_simple_timeline_layer_nth (layer, source);
  ges_simple_timeline_layer_move_object(layer, obj, dest);
}