Logo Search packages:      
Sourcecode: ktechlab version File versions

void FlowContainer::setFullBounds ( bool  full  )  [inherited]

Sets the bound to a simple rectangle if true, so that ICNDocument can tell whether an item is being dropped into it

Definition at line 240 of file flowcontainer.cpp.

Referenced by ICNDocument::addItem().

{
      if ( full || !b_expanded )
      {
            QRect bounds = b_expanded ? m_sizeRect : QRect( m_sizeRect.x(), m_sizeRect.y(), m_sizeRect.width(), topStrip );
            setPoints( QPointArray(bounds) );
            return;
      }
      
//    kdDebug() << k_funcinfo << "width="<<width()<<" height="<<height()<<endl;
      
      QPointArray pa(10);
      pa[0] = QPoint( 0, 0 );
      pa[1] = QPoint( width(), 0 );
      pa[2] = QPoint( width(), height() );
      pa[3] = QPoint( 0, height() );
      pa[4] = QPoint( 0, 0 );
      pa[5] = QPoint( 8, topStrip );
      pa[6] = QPoint( 8, height()-botStrip );
      pa[7] = QPoint( width()-8, height()-botStrip );
      pa[8] = QPoint( width()-8, topStrip );
      pa[9] = QPoint( 8, topStrip );
      pa.translate( offsetX(), offsetY() );
      setPoints(pa);
}


Generated by  Doxygen 1.6.0   Back to index