Skip to content
Permalink
Browse files

UI tweaks

  • Loading branch information
etiennesky authored and dakcarto committed Sep 11, 2012
1 parent 0ee89e2 commit 1767523456115d234550009d35a078cb550ed45e
Showing with 5 additions and 10 deletions.
  1. +5 −10 src/gui/qgscollapsiblegroupbox.cpp
@@ -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 );
}

0 comments on commit 1767523

Please sign in to comment.
You can’t perform that action at this time.