aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/accordion_frame.cpp
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-12-05 16:22:09 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-12-19 12:51:03 +0000
commit7baac67149a68b66087c5d688dbeda2869485765 (patch)
treecf4bb19f0b55ea513e5c4ae3283866467dbdc3d7 /ui/qt/accordion_frame.cpp
parent3efb965493b00fe1c123137c4e09597b69427344 (diff)
Qt: Try to fix Main Welcome Interfaces List Scrollbar
Bug: 11733 Change-Id: Ic144634acce7b9e9eb9821ca6452694cb2dcf4dd Reviewed-on: https://code.wireshark.org/review/12684 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'ui/qt/accordion_frame.cpp')
-rw-r--r--ui/qt/accordion_frame.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/qt/accordion_frame.cpp b/ui/qt/accordion_frame.cpp
index 9a0e7b3559..87d7c31ac4 100644
--- a/ui/qt/accordion_frame.cpp
+++ b/ui/qt/accordion_frame.cpp
@@ -50,7 +50,7 @@ AccordionFrame::AccordionFrame(QWidget *parent) :
animation_ = new QPropertyAnimation(this, "maximumHeight", this);
animation_->setDuration(duration_);
animation_->setEasingCurve(QEasingCurve::InOutQuad);
- connect(animation_, SIGNAL(finished()), this, SLOT(animationFinished()));
+ connect(animation_, SIGNAL(finished()), this, SLOT(animationFinish()));
}
void AccordionFrame::animatedShow()
@@ -98,12 +98,14 @@ void AccordionFrame::animatedHide()
}
}
-void AccordionFrame::animationFinished()
+void AccordionFrame::animationFinish()
{
if (animation_->currentValue().toInt() < 1) {
hide();
setMaximumHeight(frame_height_);
}
+
+ emit animationFinished();
}
/*