fixed compile issues

This commit is contained in:
itsmattkc
2018-12-13 14:57:56 +11:00
parent 3eef432fb5
commit b3fb7d37af
7 changed files with 26 additions and 21 deletions
+1 -3
View File
@@ -27,7 +27,6 @@
#include "effects/internal/paneffect.h"
#include "effects/internal/shakeeffect.h"
#include "effects/internal/cornerpineffect.h"
#include "effects/internal/maskeffect.h"
#include <QCheckBox>
#include <QGridLayout>
@@ -59,8 +58,7 @@ Effect* create_effect(Clip* c, const EffectMeta* em) {
case EFFECT_INTERNAL_PAN: return new PanEffect(c, em);
case EFFECT_INTERNAL_TONE: return new ToneEffect(c, em);
case EFFECT_INTERNAL_SHAKE: return new ShakeEffect(c, em);
case EFFECT_INTERNAL_CORNERPIN: return new CornerPinEffect(c, em);
case EFFECT_INTERNAL_MASK: return new MaskEffect(c, em);
case EFFECT_INTERNAL_CORNERPIN: return new CornerPinEffect(c, em);
}
} else {
dout << "[ERROR] Invalid effect data";
+7 -2
View File
@@ -18,14 +18,19 @@ void ProjectModel::destroy_root() {
if (panel_sequence_viewer != NULL) panel_sequence_viewer->viewer_widget->delete_function();
if (panel_footage_viewer != NULL) panel_footage_viewer->viewer_widget->delete_function();
if (root_item != NULL) delete root_item;
if (root_item != NULL) {
beginRemoveRows(QModelIndex(), 0, root_item->childCount());
delete root_item;
endRemoveRows();
}
}
void ProjectModel::clear() {
destroy_root();
beginResetModel();
root_item = new Media(0);
root_item->root = true;
update_data();
endResetModel();
}
Media *ProjectModel::get_root() {