File indexing completed on 2024-04-21 14:56:00
0001 /* This file is part of the KDE libraries 0002 Copyright (C) 2005 David Faure <faure@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License version 2 as published by the Free Software Foundation. 0007 0008 This library is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 Library General Public License for more details. 0012 0013 You should have received a copy of the GNU Library General Public License 0014 along with this library; see the file COPYING.LIB. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef KVBOX_H 0020 #define KVBOX_H 0021 0022 #include <khbox.h> 0023 0024 /** 0025 * A container widget which arranges its children vertically. 0026 * When using a KVBox you don't need to create a layout nor 0027 * to add the child widgets to it. 0028 * 0029 * Both margin and spacing are initialized to 0. Use QVBoxLayout 0030 * if you need standard layout margins. 0031 * 0032 * \image html kvbox.png "KDE Vertical Box containing three buttons" 0033 * 0034 * @see KHBox 0035 */ 0036 class KDELIBS4SUPPORT_DEPRECATED_EXPORT KVBox : public KHBox 0037 { 0038 Q_OBJECT 0039 0040 public: 0041 /** 0042 * Creates a new vbox. 0043 * 0044 * @param parent The parent widget. 0045 */ 0046 KDELIBS4SUPPORT_DEPRECATED explicit KVBox(QWidget *parent = nullptr); 0047 0048 /** 0049 * Destructor. 0050 */ 0051 ~KVBox() override; 0052 0053 private: 0054 class Private; 0055 friend class Private; 0056 Private *const d; 0057 0058 Q_DISABLE_COPY(KVBox) 0059 }; 0060 0061 #endif