修改能量列展开
This commit is contained in:
parent
9eeb09f18a
commit
03daa073cc
|
|
@ -74,9 +74,9 @@ void NuclideRayListDialog::initUI()
|
|||
QTableView *tableView = new QTableView(this);
|
||||
tableView->setModel(m_model);
|
||||
tableView->verticalHeader()->setVisible(false);
|
||||
tableView->setColumnWidth(0, 80); // ID
|
||||
tableView->setColumnWidth(0, 50); // ID
|
||||
tableView->setColumnWidth(1, 80); // 射线类型
|
||||
tableView->setColumnWidth(2, 120); // 能量
|
||||
tableView->setColumnWidth(2, 270); // 能量
|
||||
tableView->setColumnWidth(3, 120); // 能量不确定度
|
||||
tableView->setColumnWidth(4, 100); // 分支比
|
||||
tableView->setColumnWidth(5, 120); // 分支比不确定度
|
||||
|
|
@ -84,8 +84,8 @@ void NuclideRayListDialog::initUI()
|
|||
tableView->setColumnWidth(7, 100); // 加和峰
|
||||
tableView->setColumnWidth(8, 150); // 操作列
|
||||
|
||||
tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
|
||||
tableView->setAlternatingRowColors(true);
|
||||
// tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
|
||||
// tableView->setAlternatingRowColors(true);
|
||||
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
tableView->setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user