added some dank tab animations

This commit is contained in:
fourtf
2017-01-26 05:26:21 +01:00
parent 700c756f5a
commit 4b2ddb0bbb
7 changed files with 53 additions and 35 deletions
+7 -7
View File
@@ -172,21 +172,21 @@ ScrollBar::mouseReleaseEvent(QMouseEvent *event)
if (y < this->buttonHeight) {
if (this->mouseDownIndex == 0) {
this->setValue(this->value - this->smallChange);
this->setValue(this->value - this->smallChange, true);
}
} else if (y < this->thumbRect.y()) {
if (this->mouseDownIndex == 0) {
this->setValue(this->value - this->smallChange);
if (this->mouseDownIndex == 1) {
this->setValue(this->value - this->smallChange, true);
}
} else if (this->thumbRect.contains(2, y)) {
// do nothing
} else if (y < height() - this->buttonHeight) {
if (this->mouseDownIndex == 0) {
this->setValue(this->value + this->smallChange);
if (this->mouseDownIndex == 3) {
this->setValue(this->value + this->smallChange, true);
}
} else {
if (this->mouseDownIndex == 0) {
this->setValue(this->value + this->smallChange);
if (this->mouseDownIndex == 4) {
this->setValue(this->value + this->smallChange, true);
}
}