mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: rectify animSpeed data flow
The cartesian axes use animSpeed to animate changes. Instead of passing down the value to the respective functions, the speed was stored in the ProfileScene and the axes would access it there. Very messy. Let's just pass down the speed. There still are back-references from the axes to the scene, notably to place labels "outside" of the scene. Let's try to remove them later. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d19b095db1
commit
1327043d6e
5 changed files with 52 additions and 52 deletions
|
@ -262,7 +262,7 @@ void ProfileWidget2::actionRequestedReplot(bool)
|
|||
|
||||
void ProfileWidget2::settingsChanged()
|
||||
{
|
||||
profileScene->updateAxes();
|
||||
profileScene->updateAxes(false);
|
||||
replot();
|
||||
}
|
||||
|
||||
|
@ -446,7 +446,7 @@ void ProfileWidget2::setProfileState()
|
|||
currentState = PROFILE;
|
||||
setBackgroundBrush(getColor(::BACKGROUND, profileScene->isGrayscale));
|
||||
|
||||
profileScene->updateAxes();
|
||||
profileScene->updateAxes(true);
|
||||
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
toolTipItem->readPos();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue