implemented vertical "zooming" in the TimelineWidget and CurveView
This comes in the form of changing the vertical scale in the CurveView and adjusting all track heights in the Timeline.
This commit is contained in:
@@ -61,8 +61,14 @@ void TrackViewSplitter::SetTrackHeight(int index, int h)
|
||||
{
|
||||
QList<int> element_sizes = sizes();
|
||||
|
||||
if (alignment_ == Qt::AlignBottom) {
|
||||
index = count() - index - 1;
|
||||
}
|
||||
|
||||
int old_ele_sz = element_sizes.at(index);
|
||||
|
||||
qDebug() << "Old ele sz" << old_ele_sz << "vs h" << h;
|
||||
|
||||
int diff = h - old_ele_sz;
|
||||
|
||||
// Set new size on element
|
||||
|
||||
Reference in New Issue
Block a user