equal
deleted
inserted
replaced
152 if (cbinds[i].category != NULL || cbinds[i].description != NULL) |
152 if (cbinds[i].category != NULL || cbinds[i].description != NULL) |
153 { |
153 { |
154 curTable = new QTableWidget(0, 2); |
154 curTable = new QTableWidget(0, 2); |
155 curTable->verticalHeader()->setVisible(false); |
155 curTable->verticalHeader()->setVisible(false); |
156 curTable->horizontalHeader()->setVisible(false); |
156 curTable->horizontalHeader()->setVisible(false); |
157 curTable->horizontalHeader()->setResizeMode(QHeaderView::Stretch); |
157 curTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); |
158 curTable->verticalHeader()->setDefaultSectionSize(rowHeight); |
158 curTable->verticalHeader()->setDefaultSectionSize(rowHeight); |
159 curTable->setShowGrid(false); |
159 curTable->setShowGrid(false); |
160 curTable->setStyleSheet("QTableWidget { border: none; } "); |
160 curTable->setStyleSheet("QTableWidget { border: none; } "); |
161 curTable->setSelectionBehavior(QAbstractItemView::SelectRows); |
161 curTable->setSelectionBehavior(QAbstractItemView::SelectRows); |
162 curTable->setSelectionMode(QAbstractItemView::SingleSelection); |
162 curTable->setSelectionMode(QAbstractItemView::SingleSelection); |