KDEUI
khbox.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2005 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef KHBOX_H 00020 #define KHBOX_H 00021 00022 #include <kdeui_export.h> 00023 00024 #include <QtGui/QFrame> 00025 00026 class QChildEvent; 00027 00040 class KDEUI_EXPORT KHBox : public QFrame 00041 { 00042 Q_OBJECT 00043 00044 public: 00048 explicit KHBox( QWidget* parent = 0 ); 00049 00053 ~KHBox(); 00054 00058 void setMargin( int margin ); 00059 00065 void setSpacing( int space ); 00066 00070 void setStretchFactor( QWidget* widget, int stretch ); 00071 00075 virtual QSize sizeHint() const; 00076 00080 virtual QSize minimumSizeHint() const; 00081 00082 protected: 00083 /* 00084 * @internal 00085 */ 00086 KHBox( bool vertical, QWidget* parent ); 00087 00088 virtual void childEvent( QChildEvent* ev ); 00089 00090 private: 00091 class Private; 00092 friend class Private; 00093 Private* const d; 00094 00095 Q_DISABLE_COPY(KHBox) 00096 }; 00097 00098 #endif
KDE 4.6 API Reference