KVIrc 5.2.4
Developer APIs
KviTalVBox.h
Go to the documentation of this file.
1#ifndef _KVI_TAL_VBOX_H_
2#define _KVI_TAL_VBOX_H_
3//=============================================================================
4//
5// File : KviTalVBox.h
6// Creation date : Mon Jan 22 2007 11:25:08 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2007 Szymon Stefanek (pragma at kvirc dot net)
10// Copyright (C) 2008 Elvio Basello (hellvis69 at netsons dot org)
11//
12// This program is FREE software. You can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation; either version 2
15// of the License, or (at your option) any later version.
16//
17// This program is distributed in the HOPE that it will be USEFUL,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20// See the GNU General Public License for more details.
21//
22// You should have received a copy of the GNU General Public License
23// along with this program. If not, write to the Free Software Foundation,
24// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25//
26//=============================================================================
27
34#include "kvi_settings.h"
35
36#include <QWidget>
37#include <QVBoxLayout>
38
43class KVILIB_API KviTalVBox : public QWidget
44{
45 Q_OBJECT
46public:
53 KviTalVBox(QWidget * pParent, char * pcName = nullptr);
54
59
60private:
61 QVBoxLayout * m_pLayout;
62
63public:
70 void setStretchFactor(QWidget * pChild, int iStretch);
71
77 void setSpacing(int iSpacing);
78
84 void setMargin(int iMargin);
85
91 void setAlignment(Qt::Alignment alignment);
92
99 void setAlignment(QWidget * pChild, Qt::Alignment alignment);
100
106 void addStretch(int iStretch);
107
108protected:
109 void childEvent(QChildEvent * e) override;
110};
111
112#endif // _KVI_TAL_VBOX_H_
Toolkit Abstraction Layer: vbox class.
Definition KviTalVBox.h:44
QVBoxLayout * m_pLayout
Definition KviTalVBox.h:61
~KviTalVBox()
Destroys a vertical box object.
#define e
Definition detector.cpp:70
This file contains compile time settings.
#define KVILIB_API
Definition kvi_settings.h:124