예제 #1
0
void QgsUserInputDockWidget::floatingChanged( bool floating )
{
  if ( mLayoutHorizontal == floating )
  {
    adjustSize();
    return;
  }
  mLayoutHorizontal = floating;
  updateLayoutDirection();
}
예제 #2
0
void QgsUserInputDockWidget::areaChanged( Qt::DockWidgetArea area )
{
  bool newLayoutHorizontal = area & Qt::BottomDockWidgetArea || area & Qt::TopDockWidgetArea;
  if ( mLayoutHorizontal == newLayoutHorizontal )
  {
    // no change
    adjustSize();
    return;
  }
  mLayoutHorizontal = newLayoutHorizontal;
  updateLayoutDirection();
}
예제 #3
0
 void updateEdge()
 {
     updateGeometry();
     updateLayoutDirection();
 }