MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / setCustomWidget

Method setCustomWidget

ElaWidgetTools/ElaScrollPage.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 d->_mainLayout->removeWidget(d->_bottomCustomWidget);
92 }
93 d->_mainLayout->insertWidget(3, customWidget);
94 d->_bottomCustomWidget = customWidget;
95}
96
97QWidget* ElaScrollPage::getBottomCustomWidget() const
98{
99 Q_D(const ElaScrollPage);
100 return d->_bottomCustomWidget;
101}
102
103void ElaScrollPage::addCentralWidget(QWidget* centralWidget, bool isWidgetResizeable, bool isVerticalGrabGesture, qreal mousePressEventDelay)
104{
105 Q_D(ElaScrollPage);
106 if (!centralWidget)
107 {
108 return;
109 }
110 if (centralWidget->windowTitle().isEmpty())

Callers

nothing calls this directly

Calls 1

removeWidgetMethod · 0.80

Tested by

no test coverage detected