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

Method ElaScrollArea

ElaWidgetTools/ElaScrollArea.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "ElaScrollBar.h"
8
9ElaScrollArea::ElaScrollArea(QWidget* parent)
10 : QScrollArea(parent), d_ptr(new ElaScrollAreaPrivate())
11{
12 Q_D(ElaScrollArea);
13 d->q_ptr = this;
14 setObjectName("ElaScrollArea");
15 setStyleSheet("#ElaScrollArea{background-color:transparent;border:0px;}");
16 setHorizontalScrollBar(new ElaScrollBar(this));
17 setVerticalScrollBar(new ElaScrollBar(this));
18 QScrollArea::setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
19 QScrollArea::setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
20}
21
22ElaScrollArea::~ElaScrollArea()
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected