diff options
author | deva <deva> | 2010-08-12 10:57:04 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-12 10:57:04 +0000 |
commit | d9338083192084613e5530b02710b796252d342b (patch) | |
tree | e0ec2b36e0de62328e5fd5d3b597f6ee71d1b18f /client/collapser.cc | |
parent | dbab8458dcce186e7eb7a114a83f759d7db5445a (diff) |
New scripting system part2.
Diffstat (limited to 'client/collapser.cc')
-rw-r--r-- | client/collapser.cc | 15 |
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(); } } |