45 #ifndef QY2LayoutUtils_h
46 #define QY2LayoutUtils_h
54 QWidget * addVStretch( QWidget * parent );
59 QWidget * addHStretch( QWidget * parent );
64 QWidget * addVSpacing( QWidget * parent,
int height = 8 );
69 QWidget * addHSpacing( QWidget * parent,
int width = 8 );
74 QSize limitToScreenSize(
const QWidget * widget,
const QSize & desiredSize );
75 QSize limitToScreenSize(
const QWidget * widget,
int width,
int height );
77 #endif // ifndef QY2LayoutUtils_h