improved audio monitor

This commit is contained in:
itsmattkc
2019-01-22 13:17:38 +11:00
parent e7f05ff64b
commit 8133d4dd9d
6 changed files with 23 additions and 20 deletions
-6
View File
@@ -68,7 +68,6 @@ Timeline::Timeline(QWidget *parent) :
transition_tool_post_clip(-1),
hand_moving(false),
block_repaints(false),
last_frame(0),
scroll(0)
{
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
@@ -443,11 +442,6 @@ void Timeline::repaint_timeline() {
if (sequence != nullptr) {
set_sb_max();
if (last_frame != sequence->playhead) {
audio_monitor->update();
last_frame = sequence->playhead;
}
}
}
}
+1 -2
View File
@@ -231,7 +231,6 @@ private:
QVector<QPushButton*> tool_buttons;
void decheck_tool_buttons(QObject* sender);
void set_tool(int tool);
long last_frame;
int scroll;
void set_sb_max();
@@ -249,7 +248,7 @@ private:
QPushButton* zoomOutButton;
QPushButton* recordButton;
QPushButton* addButton;
QWidget* tool_button_widget;
QWidget* tool_button_widget;
};
#endif // TIMELINE_H
+1 -1
View File
@@ -560,7 +560,7 @@ void Viewer::setup_ui() {
QHBoxLayout* current_timecode_container_layout = new QHBoxLayout(current_timecode_container);
current_timecode_container_layout->setSpacing(0);
current_timecode_container_layout->setMargin(0);
current_timecode_slider = new LabelSlider(current_timecode_container);
current_timecode_slider = new LabelSlider(current_timecode_container);
lower_control_layout->addWidget(current_timecode_container);
QWidget* playback_controls = new QWidget(lower_controls);