@@ -77,13 +77,13 @@ App.controller("TimelineCtrl", function ($scope) {
77
77
$scope . Qt = false ;
78
78
$scope . enableQt = function ( ) {
79
79
$scope . Qt = true ;
80
- timeline . qt_log ( "$scope.Qt = true;" ) ;
80
+ timeline . qt_log2 ( "DEBUG" , "$scope.Qt = true;" ) ;
81
81
timeline . page_ready ( ) ;
82
82
} ;
83
83
84
84
$scope . setThumbAddress = function ( url ) {
85
85
$scope . ThumbServer = url ;
86
- timeline . qt_log ( "setThumbAddress: " + url ) ;
86
+ timeline . qt_log2 ( "DEBUG" , "setThumbAddress: " + url ) ;
87
87
} ;
88
88
89
89
// Move the playhead to a specific time
@@ -318,7 +318,7 @@ App.controller("TimelineCtrl", function ($scope) {
318
318
// Append cache buster, since QtWebEngine seems to aggressively cache images
319
319
existing_thumb_path += "?" + Math . random ( ) ;
320
320
321
- timeline . qt_log ( existing_thumb_path ) ;
321
+ timeline . qt_log2 ( "DEBUG" , existing_thumb_path ) ;
322
322
clip_selector . attr ( "src" , existing_thumb_path ) ;
323
323
} ;
324
324
@@ -332,7 +332,7 @@ App.controller("TimelineCtrl", function ($scope) {
332
332
$scope . project . clips [ clip_index ] . audio_data = audio_data ;
333
333
$scope . project . clips [ clip_index ] . show_audio = true ;
334
334
} ) ;
335
- timeline . qt_log ( "Audio data successful set on clip JSON" ) ;
335
+ timeline . qt_log2 ( "DEBUG" , "Audio data successful set on clip JSON" ) ;
336
336
break ;
337
337
}
338
338
@@ -642,7 +642,7 @@ App.controller("TimelineCtrl", function ($scope) {
642
642
// Show clip context menu
643
643
$scope . showClipMenu = function ( clip_id , event ) {
644
644
if ( $scope . Qt && ! $scope . enable_razor ) {
645
- timeline . qt_log ( "$scope.showClipMenu" ) ;
645
+ timeline . qt_log2 ( "DEBUG" , "$scope.showClipMenu" ) ;
646
646
$scope . selectClip ( clip_id , false , event ) ;
647
647
timeline . ShowClipMenu ( clip_id ) ;
648
648
}
@@ -651,15 +651,15 @@ App.controller("TimelineCtrl", function ($scope) {
651
651
// Show clip context menu
652
652
$scope . showEffectMenu = function ( effect_id ) {
653
653
if ( $scope . Qt && ! $scope . enable_razor ) {
654
- timeline . qt_log ( "$scope.showEffectMenu" ) ;
654
+ timeline . qt_log2 ( "DEBUG" , "$scope.showEffectMenu" ) ;
655
655
timeline . ShowEffectMenu ( effect_id ) ;
656
656
}
657
657
} ;
658
658
659
659
// Show transition context menu
660
660
$scope . showTransitionMenu = function ( tran_id , event ) {
661
661
if ( $scope . Qt && ! $scope . enable_razor ) {
662
- timeline . qt_log ( "$scope.showTransitionMenu" ) ;
662
+ timeline . qt_log2 ( "DEBUG" , "$scope.showTransitionMenu" ) ;
663
663
$scope . selectTransition ( tran_id , false , event ) ;
664
664
timeline . ShowTransitionMenu ( tran_id ) ;
665
665
}
@@ -668,23 +668,23 @@ App.controller("TimelineCtrl", function ($scope) {
668
668
// Show track context menu
669
669
$scope . showTrackMenu = function ( layer_id ) {
670
670
if ( $scope . Qt && ! $scope . enable_razor ) {
671
- timeline . qt_log ( "$scope.showTrackMenu" ) ;
671
+ timeline . qt_log2 ( "DEBUG" , "$scope.showTrackMenu" ) ;
672
672
timeline . ShowTrackMenu ( layer_id ) ;
673
673
}
674
674
} ;
675
675
676
676
// Show marker context menu
677
677
$scope . showMarkerMenu = function ( marker_id ) {
678
678
if ( $scope . Qt && ! $scope . enable_razor ) {
679
- timeline . qt_log ( "$scope.showMarkerMenu" ) ;
679
+ timeline . qt_log2 ( "DEBUG" , "$scope.showMarkerMenu" ) ;
680
680
timeline . ShowMarkerMenu ( marker_id ) ;
681
681
}
682
682
} ;
683
683
684
684
// Show playhead context menu
685
685
$scope . showPlayheadMenu = function ( position ) {
686
686
if ( $scope . Qt && ! $scope . enable_razor ) {
687
- timeline . qt_log ( "$scope.showPlayheadMenu" ) ;
687
+ timeline . qt_log2 ( "DEBUG" , "$scope.showPlayheadMenu" ) ;
688
688
timeline . ShowPlayheadMenu ( position ) ;
689
689
}
690
690
} ;
@@ -907,7 +907,7 @@ App.controller("TimelineCtrl", function ($scope) {
907
907
$scope . updateLayerIndex = function ( ) {
908
908
909
909
if ( $scope . Qt ) {
910
- timeline . qt_log ( "updateLayerIndex" ) ;
910
+ timeline . qt_log2 ( "DEBUG" , "updateLayerIndex" ) ;
911
911
}
912
912
913
913
var scrolling_tracks = $ ( "#scrolling_tracks" ) ;
@@ -939,7 +939,7 @@ App.controller("TimelineCtrl", function ($scope) {
939
939
}
940
940
941
941
if ( $scope . Qt ) {
942
- timeline . qt_log ( "sortItems" ) ;
942
+ timeline . qt_log2 ( "DEBUG" , "sortItems" ) ;
943
943
944
944
$scope . $evalAsync ( function ( ) {
945
945
// Sort by position second
0 commit comments