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

Method navigation

ElaWidgetTools/ElaScrollPage.cpp:115–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114 if (d->_centralStackedWidget->count() == 0)
115 {
116 d->_breadcrumbBar->appendBreadcrumb(centralWidget->windowTitle());
117 }
118 ElaScrollArea* scrollArea = new ElaScrollArea(this);
119 scrollArea->setMouseTracking(true);
120 scrollArea->setIsAnimation(Qt::Vertical, true);
121 scrollArea->setWidgetResizable(isWidgetResizeable);
122 scrollArea->setIsGrabGesture(isVerticalGrabGesture, mousePressEventDelay);
123 scrollArea->setIsOverShoot(Qt::Vertical, true);
124 scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
125 ElaScrollBar* floatVScrollBar = new ElaScrollBar(scrollArea->verticalScrollBar(), scrollArea);
126 floatVScrollBar->setIsAnimation(true);
127
128 QWidget* scrollPageContainer = new QWidget(this);
129 scrollPageContainer->setObjectName("ElaScrollPageContainer");
130 scrollPageContainer->setStyleSheet("#ElaScrollPageContainer{background-color:transparent;}");
131 QVBoxLayout* scrollPageContainerLayout = new QVBoxLayout(scrollPageContainer);
132 scrollPageContainerLayout->setContentsMargins(0, 0, 0, 0);
133 scrollPageContainerLayout->addWidget(centralWidget);
134 scrollArea->setWidget(scrollPageContainer);
135
136 d->_centralWidgetMap.insert(centralWidget->windowTitle(), d->_centralStackedWidget->count());
137 d->_centralStackedWidget->addWidget(scrollArea);
138}
139

Callers

nothing calls this directly

Calls 4

countMethod · 0.80
recordCommandMethod · 0.80
appendBreadcrumbMethod · 0.45

Tested by

no test coverage detected