make sure clip markers in timeline refresh as soon as marker is edited
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "common/qtutils.h"
|
#include "common/qtutils.h"
|
||||||
#include "config/config.h"
|
#include "config/config.h"
|
||||||
|
#include "panel/panelmanager.h"
|
||||||
|
#include "panel/timeline/timeline.h"
|
||||||
#include "ui/colorcoding.h"
|
#include "ui/colorcoding.h"
|
||||||
#include "widget/menu/menu.h"
|
#include "widget/menu/menu.h"
|
||||||
#include "widget/menu/menushared.h"
|
#include "widget/menu/menushared.h"
|
||||||
@@ -114,6 +116,11 @@ void Marker::paintEvent(QPaintEvent *event)
|
|||||||
} else {
|
} else {
|
||||||
resize(marker_width_, marker_height_);
|
resize(marker_width_, marker_height_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TimelinePanel* timeline = PanelManager::instance()->MostRecentlyFocused<TimelinePanel>();
|
||||||
|
if (timeline) {
|
||||||
|
timeline->timeline_widget()->Refresh();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Marker::mousePressEvent(QMouseEvent* e)
|
void Marker::mousePressEvent(QMouseEvent* e)
|
||||||
|
|||||||
@@ -218,6 +218,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
void SignalDeselectedAllBlocks();
|
void SignalDeselectedAllBlocks();
|
||||||
|
|
||||||
|
void Refresh()
|
||||||
|
{
|
||||||
|
UpdateViewports();
|
||||||
|
}
|
||||||
|
|
||||||
MultiUndoCommand *TakeSubtitleSectionCommand()
|
MultiUndoCommand *TakeSubtitleSectionCommand()
|
||||||
{
|
{
|
||||||
// Copy pointer
|
// Copy pointer
|
||||||
|
|||||||
@@ -637,8 +637,6 @@ void TimelineView::DrawClipMarker(QPainter* painter, double marker_x, qreal mark
|
|||||||
|
|
||||||
int half_marker_height = marker_height / 3;
|
int half_marker_height = marker_height / 3;
|
||||||
|
|
||||||
qDebug() << x << y;
|
|
||||||
|
|
||||||
QPoint points[] = {
|
QPoint points[] = {
|
||||||
QPoint(x, y),
|
QPoint(x, y),
|
||||||
QPoint(x - half_width, y - half_marker_height),
|
QPoint(x - half_width, y - half_marker_height),
|
||||||
|
|||||||
Reference in New Issue
Block a user