Commit b42102e2 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

adjust columns widths to contents

parent 3ef4afcd
......@@ -870,6 +870,8 @@ void ImportSelector::showPreview() {
addAdditionalFrameColumns(*it, row);
++row;
}
m_tab->scrollToTop();
m_tab->resizeColumnsToContents();
m_tab->setVerticalHeaderLabels(vLabels);
#else
m_tab->setNumRows(0);
......@@ -909,6 +911,12 @@ void ImportSelector::showPreview() {
addAdditionalFrameColumns(*it, row);
++row;
}
if (row > 0) {
m_tab->ensureCellVisible(0, 0);
}
for (int col = 0; col < m_tab->numCols(); ++col) {
m_tab->adjustColumn(col);
}
#endif
// make time difference check
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment