]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/YQSpacing.h
- Don't create layouts with parent. Qt 4.x automatically reparents
[duncan/yast2-qt4.git] / src / YQSpacing.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQSpacing.h
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19 #ifndef YQSpacing_h
20 #define YQSpacing_h
21
22 #include <qwidget.h>
23 #include "YSpacing.h"
24
25
26 class YQSpacing : public QWidget, public YSpacing
27 {
28     Q_OBJECT
29
30 public:
31     /**
32      * Constructor.
33      **/
34     YQSpacing( YWidget *        parent,
35                YUIDimension     dim,
36                bool             stretchable     = false,
37                YLayoutSize_t    layoutUnits     = 0.0 );
38
39     virtual ~YQSpacing();
40
41     /**
42      * Set the new size of the widget.
43      *
44      * Reimplemented from YWidget.
45      **/
46     virtual void setSize( int newWidth, int newHeight );
47 };
48
49
50 #endif // YQSpacing_h