summaryrefslogtreecommitdiff
path: root/client/collapser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/collapser.cc')
-rw-r--r--client/collapser.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/client/collapser.cc b/client/collapser.cc
index fd025c0..1d77c09 100644
--- a/client/collapser.cc
+++ b/client/collapser.cc
@@ -58,11 +58,12 @@ void Collapser::setWidgets(QWidget *collapsed, QWidget *expanded)
void Collapser::setCollapsedWidget(QWidget *collapsed)
{
+ /*
if(this->collapsed) {
delete this->collapsed;
this->collapsed = NULL;
}
-
+ */
this->collapsed = collapsed;
if(isCollapsed() == true && collapsed) {
@@ -73,11 +74,12 @@ void Collapser::setCollapsedWidget(QWidget *collapsed)
void Collapser::setExpandedWidget(QWidget *expanded)
{
+ /*
if(this->expanded) {
delete this->expanded;
this->expanded = NULL;
}
-
+ */
this->expanded = expanded;
if(isCollapsed() == false && expanded) {
@@ -183,7 +185,9 @@ void Collapser::anim()
// show collapsed
if(expanded) {
expanded->setVisible(false);
- qApp->processEvents(); // Make sure it is actualle invisble before removing it form the layout.
+ // Make sure it is actualle invisible before removing it from the
+ // layout.
+ qApp->processEvents();
layout()->removeWidget(expanded);
}
if(collapsed) {
@@ -192,8 +196,13 @@ void Collapser::anim()
}
setFixedHeight(c_height);
+
+ emit doneCollapsing();
+
} else {
setFixedHeight(e_height);
+
+ emit doneExpanding();
}
}