QTfrontend/ui/widget/keybinder.cpp
branchqt5transition
changeset 12897 fc47fc4af6bd
parent 12698 f2690a0ccf19
child 13309 2bdae461ae5f
equal deleted inserted replaced
12896:8869b5256720 12897:fc47fc4af6bd
   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);