MCPcopy Create free account
hub / github.com/davy7125/polyphone / TableWidget

Method TableWidget

sources/editor/widgets/tablewidget.cpp:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36#include "tableheaderviewv.h"
37
38TableWidget::TableWidget(QWidget *parent) : QTableWidget(parent)
39{
40 _tableDelegate = new TableDelegate(this);
41 setItemDelegate(_tableDelegate);
42 setHorizontalHeader(new TableHeaderView(this));
43 setVerticalHeader(new TableHeaderViewV(this));
44
45 _timer = new QTimer(this);
46 connect(_timer, SIGNAL(timeout()), this, SLOT(updateColors()));
47 connect(this->horizontalHeader(), SIGNAL(sectionDoubleClicked(int)), this, SLOT(onSectionDoubleClicked(int)));
48 connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(onItemSelectionChanged()));
49
50 // Style
51 this->setStyleSheet(ContextManager::theme()->getTableTheme() +
52 "QTableWidget {border-top:0;border-left:0;border-right:0;}");
53}
54
55void TableWidget::clear()
56{

Callers

nothing calls this directly

Calls 1

getTableThemeMethod · 0.80

Tested by

no test coverage detected