Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

int QStyle::layoutSpacingImplementation ( QSizePolicy::ControlType  control1,
QSizePolicy::ControlType  control2,
Qt::Orientation  orientation,
const QStyleOption option = 0,
const QWidget widget = 0 
) const [protected, slot, inherited]

Since:
4.3
This slot is called by layoutSpacing() to determine the spacing that should be used between control1 and control2 in a layout. orientation specifies whether the controls are laid out side by side or stacked vertically. The option parameter can be used to pass extra information about the parent widget. The widget parameter is optional and can also be used if option is 0.

If you want to provide custom layout spacings in a QStyle subclass, implement a slot called layoutSpacingImplementation() in your subclass. Be aware that this slot will only be called if PM_LayoutHorizontalSpacing or PM_LayoutVerticalSpacing returns a negative value.

The default implementation returns -1.

See also:
layoutSpacing(), combinedLayoutSpacing()

Reimplemented in QPlastiqueStyle.

Definition at line 2283 of file qstyle.cpp.

{
    return -1;
}


Generated by  Doxygen 1.6.0   Back to index