Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennesky authored and dakcarto committed Sep 11, 2012
1 parent 0ee89e2 commit 1767523
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/gui/qgscollapsiblegroupbox.cpp
Expand Up @@ -119,16 +119,11 @@ void QgsCollapsibleGroupBox::setCollapsed( bool collapse )

// for consistent look/spacing across platforms when collapsed
setFlat( collapse );
setMaximumHeight( collapse ? 28 : 16777215 );

if ( collapse )
{
mCollapseButton->setIcon( mExpandIcon );
}
else
{
mCollapseButton->setIcon( mCollapseIcon );
}
// avoid flicker in X11
QApplication::processEvents();
// set maximum height to 25 to hide contents - does this work in all envs?
setMaximumHeight( collapse ? 25 : 16777215 );
mCollapseButton->setIcon( collapse ? mExpandIcon : mCollapseIcon );

emit collapsedStateChanged( this );
}
Expand Down

0 comments on commit 1767523

Please sign in to comment.