1 | /* This file is part of the KDE libraries |
2 | Copyright (C) 2005 David Faure <faure@kde.org> |
3 | |
4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public |
6 | License version 2 as published by the Free Software Foundation. |
7 | |
8 | This library is distributed in the hope that it will be useful, |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11 | Library General Public License for more details. |
12 | |
13 | You should have received a copy of the GNU Library General Public License |
14 | along with this library; see the file COPYING.LIB. If not, write to |
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
16 | Boston, MA 02110-1301, USA. |
17 | */ |
18 | |
19 | #ifndef KVBOX_H |
20 | #define KVBOX_H |
21 | |
22 | #include <khbox.h> |
23 | |
24 | /** |
25 | * A container widget which arranges its children vertically. |
26 | * When using a KVBox you don't need to create a layout nor |
27 | * to add the child widgets to it. |
28 | * |
29 | * Both margin and spacing are initialized to 0. Use QVBoxLayout |
30 | * if you need standard layout margins. |
31 | * |
32 | * \image html kvbox.png "KDE Vertical Box containing three buttons" |
33 | * |
34 | * @see KHBox |
35 | */ |
36 | class KDEUI_EXPORT KVBox : public KHBox |
37 | { |
38 | Q_OBJECT |
39 | |
40 | public: |
41 | /** |
42 | * Creates a new vbox. |
43 | * |
44 | * @param parent The parent widget. |
45 | */ |
46 | explicit KVBox( QWidget* parent = 0 ); |
47 | |
48 | /** |
49 | * Destructor. |
50 | */ |
51 | ~KVBox(); |
52 | |
53 | private: |
54 | class Private; |
55 | friend class Private; |
56 | Private* const d; |
57 | |
58 | Q_DISABLE_COPY(KVBox) |
59 | }; |
60 | |
61 | #endif |
62 | |