Wrapped AnimationsDisabled with rpl::variable.
This commit is contained in:
parent
5437c8865d
commit
5c66d1fa0a
2 changed files with 7 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
|||
namespace anim {
|
||||
namespace {
|
||||
|
||||
bool AnimationsDisabled = false;
|
||||
rpl::variable<bool> AnimationsDisabled = false;
|
||||
|
||||
} // namespace
|
||||
|
||||
|
|
@ -64,8 +64,12 @@ transition easeOutQuint = [](const float64 &delta, const float64 &dt) {
|
|||
return delta * (t2 * t2 * t + 1);
|
||||
};
|
||||
|
||||
rpl::producer<bool> Disables() {
|
||||
return AnimationsDisabled.value();
|
||||
};
|
||||
|
||||
bool Disabled() {
|
||||
return AnimationsDisabled;
|
||||
return AnimationsDisabled.current();
|
||||
}
|
||||
|
||||
void SetDisabled(bool disabled) {
|
||||
|
|
|
|||
|
|
@ -344,6 +344,7 @@ QPainterPath path(QPointF (&from)[N]) {
|
|||
return result;
|
||||
}
|
||||
|
||||
rpl::producer<bool> Disables();
|
||||
bool Disabled();
|
||||
void SetDisabled(bool disabled);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue