Added ability to reset level value in Blobs.
This commit is contained in:
parent
d340430e85
commit
1e2799245c
2 changed files with 5 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ void Blobs::setLevel(float value) {
|
||||||
_levelValue.start(to);
|
_levelValue.start(to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Blobs::resetLevel() {
|
||||||
|
_levelValue.reset();
|
||||||
|
}
|
||||||
|
|
||||||
void Blobs::paint(Painter &p, const QBrush &brush, float outerScale) {
|
void Blobs::paint(Painter &p, const QBrush &brush, float outerScale) {
|
||||||
const auto opacity = p.opacity();
|
const auto opacity = p.opacity();
|
||||||
for (auto i = 0; i < _blobs.size(); i++) {
|
for (auto i = 0; i < _blobs.size(); i++) {
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ public:
|
||||||
Blob::Radiuses radiusesAt(int index);
|
Blob::Radiuses radiusesAt(int index);
|
||||||
|
|
||||||
void setLevel(float value);
|
void setLevel(float value);
|
||||||
|
void resetLevel();
|
||||||
void paint(Painter &p, const QBrush &brush, float outerScale = 1.);
|
void paint(Painter &p, const QBrush &brush, float outerScale = 1.);
|
||||||
void updateLevel(crl::time dt);
|
void updateLevel(crl::time dt);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue