#include <kis_size_group_p.h>
Definition at line 54 of file kis_size_group_p.h.
◆ GroupItem()
| GroupItem::GroupItem |
( |
QWidget * | widget | ) |
|
|
explicit |
Definition at line 232 of file kis_size_group_p.cpp.
233 : QObject()
234 , QWidgetItem(widget)
235{
236 Q_ASSERT(widget);
237 m_size = widget->sizeHint();
239 widget->installEventFilter(this);
240}
References m_hidden, and m_size.
◆ ~GroupItem()
| GroupItem::~GroupItem |
( |
| ) |
|
|
inlineoverride |
◆ eventFilter()
| bool GroupItem::eventFilter |
( |
QObject * | , |
|
|
QEvent * | event ) |
|
override |
Definition at line 257 of file kis_size_group_p.cpp.
258{
259 switch (event->type()) {
260 case QEvent::Hide:
261 if (!event->spontaneous()) {
264 }
265 break;
266
267 case QEvent::Show:
268 if (!event->spontaneous()) {
271 }
272 break;
273
274 case QEvent::Resize:
276 break;
277
278 default:
279 break;
280 }
281
282 return false;
283}
KisSizeGroupPrivate * m_group
void scheduleSizeUpdate()
Schedules an update of all widgets size.
References m_group, m_hidden, and KisSizeGroupPrivate::scheduleSizeUpdate().
◆ getGroup()
◆ getHeight()
| int GroupItem::getHeight |
( |
| ) |
const |
|
inline |
◆ getWidth()
| int GroupItem::getWidth |
( |
| ) |
const |
|
inline |
◆ hidden()
| bool GroupItem::hidden |
( |
| ) |
const |
|
inline |
◆ minimumSize()
| QSize GroupItem::minimumSize |
( |
| ) |
const |
|
override |
◆ setGroup()
◆ setHeight()
| void GroupItem::setHeight |
( |
int | height | ) |
|
|
inline |
◆ setSize()
| void GroupItem::setSize |
( |
const QSize & | size | ) |
|
|
inline |
◆ setWidth()
| void GroupItem::setWidth |
( |
int | width | ) |
|
|
inline |
◆ sizeHint()
| QSize GroupItem::sizeHint |
( |
| ) |
const |
|
override |
◆ m_group
◆ m_hidden
| bool GroupItem::m_hidden {false} |
|
private |
◆ m_size
The documentation for this class was generated from the following files: