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

Method ElaListView

ElaWidgetTools/ElaListView.cpp:8–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7#include <QMouseEvent>
8
9ElaListView::ElaListView(QWidget* parent)
10 : QListView(parent), d_ptr(new ElaListViewPrivate())
11{
12 Q_D(ElaListView);
13 d->q_ptr = this;
14 setObjectName("ElaListView");
15 setStyleSheet("#ElaListView{background-color:transparent;}");
16 d->_listViewStyle = new ElaListViewStyle(style());
17 d->_listViewStyle->setParent(this);
18 setStyle(d->_listViewStyle);
19 setMouseTracking(true);
20 setVerticalScrollBar(new ElaScrollBar(this));
21 setHorizontalScrollBar(new ElaScrollBar(this));
22 this->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
23 this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
24 setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
25 setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
26}
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected