Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 447:bff590626547 toggle
Process events before adjusting size, so that adjustSize gets the correct visibility status for each widget
author | Chris Cannam |
---|---|
date | Fri, 24 Jun 2011 11:38:26 +0100 |
parents | 8df5d64bf7c5 |
children | 54f3f0f29c95 |
comparison
equal
deleted
inserted
replaced
446:8df5d64bf7c5 | 447:bff590626547 |
---|---|
4210 //layout()->update(); | 4210 //layout()->update(); |
4211 | 4211 |
4212 if (wasMinimal) { | 4212 if (wasMinimal) { |
4213 resizeConstrained(settings.value("size").toSize()); | 4213 resizeConstrained(settings.value("size").toSize()); |
4214 } else { | 4214 } else { |
4215 QApplication::processEvents(); | |
4215 adjustSize(); //shrinks successfully the main window but does not remove the space allocated for the central widget containing panes | 4216 adjustSize(); //shrinks successfully the main window but does not remove the space allocated for the central widget containing panes |
4216 } | 4217 } |
4217 | 4218 |
4218 settings.endGroup(); | 4219 settings.endGroup(); |
4219 | 4220 |