Krita Source Code Documentation
Loading...
Searching...
No Matches
KoVBox.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 SPDX-FileCopyrightText: 2005 David Faure <faure@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#ifndef KoVBOX_H
8#define KoVBOX_H
9
10#include <kritawidgets_export.h>
11
12#include <QFrame>
13
14class QChildEvent;
15
27class KRITAWIDGETS_EXPORT KoVBox : public QFrame
28{
29 Q_OBJECT
30
31public:
35 explicit KoVBox(QWidget *parent = 0);
36
40 ~KoVBox() override;
41
45 void setMargin(int margin);
46
52 void setSpacing(int space);
53
57 void setStretchFactor(QWidget *widget, int stretch);
58
62 QSize sizeHint() const override;
63
67 QSize minimumSizeHint() const override;
68
69protected:
70
71 void childEvent(QChildEvent *ev) override;
72
73private:
74 class Private;
75 friend class Private;
76 Private *const d;
77
78 Q_DISABLE_COPY(KoVBox)
79};
80
81#endif
Private *const d
Definition KoVBox.h:76