Back to index

salome-gui  6.5.0
Public Member Functions
QtxDialog::Border Class Reference

Special label used as border widget (separator between main frame and button frame). More...

List of all members.

Public Member Functions

 Border (QWidget *=0)
 Constructor.
virtual ~Border ()
 Destructor.
virtual void setLineWidth (int)
 Set separator line width.
virtual QSize sizeHint () const
 Get recommended size for the widget.
virtual QSize minimumSizeHint () const
 Get recommended minimum size for the widget.

Detailed Description

Special label used as border widget (separator between main frame and button frame).

Definition at line 354 of file QtxDialog.cxx.


Constructor & Destructor Documentation

QtxDialog::Border::Border ( QWidget *  parent = 0)

Constructor.

Parameters:
parentparent widget

Definition at line 370 of file QtxDialog.cxx.

: QLabel( parent )
{
  setAlignment( Qt::AlignCenter );
}

Destructor.

Definition at line 379 of file QtxDialog.cxx.

{
}

Member Function Documentation

QSize QtxDialog::Border::minimumSizeHint ( ) const [virtual]

Get recommended minimum size for the widget.

Returns:
recommended minimum size for the widget

Definition at line 420 of file QtxDialog.cxx.

{
  return sizeHint();
}
void QtxDialog::Border::setLineWidth ( int  lw) [virtual]

Set separator line width.

Parameters:
lwnew line width

Definition at line 387 of file QtxDialog.cxx.

{
  bool isOn = lineWidth() > 0;

  QLabel::setLineWidth( lw );
    
  if ( isOn != ( lineWidth() > 0 ) )
    updateGeometry();
}
QSize QtxDialog::Border::sizeHint ( ) const [virtual]

Get recommended size for the widget.

Returns:
recommended size for the widget

Definition at line 401 of file QtxDialog.cxx.

{
  QSize sz( 5, 5 );

  if ( lineWidth() > 0 )
  {
    if ( frameShape() == VLine )
      sz += QSize( 5 + lineWidth(), 0 );
    else if ( frameShape() == HLine )
      sz += QSize( 0, 5 + lineWidth() );
  }

  return sz;
}

The documentation for this class was generated from the following file: