Skip to content

Commit

Permalink
ScrollbarAsNeeded option set for data tab
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Nov 2, 2023
1 parent 154587d commit 7a30175
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace hal
this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
this->verticalHeader()->setVisible(false);
this->horizontalHeader()->setVisible(true);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
setFrameStyle(QFrame::NoFrame);

connect(this, &QTableView::customContextMenuRequested, this, &DataTableWidget::handleContextMenuRequest);
Expand Down Expand Up @@ -120,13 +121,15 @@ namespace hal
this->setWordWrap(true);
this->resizeRowsToContents();

/*
// Configure the widget height
int h = horizontalHeader()->height();
for (int i = 0; i < mDataTableModel->rowCount(); i++)
h += rowHeight(i);
setMaximumHeight(h);
setMinimumHeight(h);
*/
}

void DataTableWidget::changePropertyRequested(DataTableModel::propertyType prop)
Expand Down

0 comments on commit 7a30175

Please sign in to comment.