workaround for qt's dock jump bug
This commit is contained in:
+5
-8
@@ -148,13 +148,10 @@ void Timeline::reset_all_audio() {
|
||||
}
|
||||
|
||||
void Timeline::seek(long p) {
|
||||
pause();
|
||||
|
||||
pause();
|
||||
playhead = p;
|
||||
|
||||
reset_all_audio();
|
||||
|
||||
repaint_timeline();
|
||||
repaint_timeline();
|
||||
}
|
||||
|
||||
void Timeline::toggle_play() {
|
||||
@@ -268,7 +265,7 @@ bool Timeline::focused() {
|
||||
}
|
||||
|
||||
void Timeline::repaint_timeline() {
|
||||
if (playing) {
|
||||
if (playing) {
|
||||
playhead = round(playhead_start + ((QDateTime::currentMSecsSinceEpoch()-start_msecs) * 0.001 * sequence->frame_rate));
|
||||
}
|
||||
|
||||
@@ -282,7 +279,7 @@ void Timeline::repaint_timeline() {
|
||||
ui->audio_monitor->update();
|
||||
last_frame = playhead;
|
||||
}
|
||||
panel_viewer->update_playhead_timecode(playhead);
|
||||
panel_viewer->update_playhead_timecode(playhead);
|
||||
}
|
||||
|
||||
void Timeline::redraw_all_clips(bool changed) {
|
||||
@@ -296,7 +293,7 @@ void Timeline::redraw_all_clips(bool changed) {
|
||||
ui->audio_area->redraw_clips();
|
||||
panel_effect_controls->update_keyframes();
|
||||
|
||||
panel_viewer->update_end_timecode();
|
||||
panel_viewer->update_end_timecode();
|
||||
}
|
||||
|
||||
void Timeline::select_all() {
|
||||
|
||||
+13
-1
@@ -10,6 +10,12 @@
|
||||
<height>592</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Timeline</string>
|
||||
</property>
|
||||
@@ -258,7 +264,7 @@
|
||||
<item>
|
||||
<widget class="QWidget" name="timeline_area" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
@@ -364,6 +370,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSplitter" name="splitter">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user