1 /****************************************************************************
2 ** $Id: qt/qhbox.h   3.3.8   edited Jan 11 14:38 $
3 **
4 ** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
5 **
6 ** This file is part of the widgets module of the Qt GUI Toolkit.
7 **
8 ** This file may be distributed under the terms of the Q Public License
9 ** as defined by Trolltech ASA of Norway and appearing in the file
10 ** LICENSE.QPL included in the packaging of this file.
11 **
12 ** This file may be distributed and/or modified under the terms of the
13 ** GNU General Public License version 2 as published by the Free Software
14 ** Foundation and appearing in the file LICENSE.GPL included in the
15 ** packaging of this file.
16 **
17 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
18 ** licenses may use this file in accordance with the Qt Commercial License
19 ** Agreement provided with the Software.
20 **
21 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
22 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23 **
24 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
25 **   information about Qt Commercial License Agreements.
26 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
27 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
28 **
29 ** Contact info@trolltech.com if any conditions of this licensing are
30 ** not clear to you.
31 **
32 **********************************************************************/
33 
34 
35 #ifndef QHBOX_H
36 #define QHBOX_H
37 
38 #ifndef QT_H
39 #include "qwidget.h"
40 #endif // QT_H
41 
42 #ifndef QT_NO_HBOX
43 
44 #include "qframe.h"
45 
46 class QBoxLayout;
47 
48 class Q_EXPORT QHBox : public QFrame
49 {
50     Q_OBJECT
51 public:
52     QHBox( QWidget* parent=0, const char* name=0, WFlags f=0 );
53 
54     void setSpacing( int );
55     bool setStretchFactor( QWidget*, int stretch );
56     QSize sizeHint() const;
57 
58 protected:
59     QHBox( bool horizontal, QWidget* parent, const char* name, WFlags f = 0 );
60     void frameChanged();
61 
62 private:
63     QBoxLayout *lay;
64 
65 #if defined(Q_DISABLE_COPY)
66     QHBox( const QHBox & );
67     QHBox &operator=( const QHBox & );
68 #endif
69 };
70 
71 #endif // QT_NO_HBOX
72 
73 #endif // QHBOX_H
74