| 36 | #include "tableheaderviewv.h" |
| 37 | |
| 38 | TableWidget::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 | |
| 55 | void TableWidget::clear() |
| 56 | { |
nothing calls this directly
no test coverage detected