resize multiple (selected) cols in Browse Data tab

This commit is contained in:
schdub
2015-04-18 20:02:38 +03:00
committed by Peinthor Rene
parent 1393e8ed9f
commit 029f01643b
3 changed files with 28 additions and 1 deletions

View File

@@ -117,3 +117,11 @@ int ExtendedTableWidget::numVisibleRows()
// Calculate the number of visible rows
return row_bottom - row_top;
}
QSet<int> ExtendedTableWidget::selectedCols()
{
QSet<int> selectedCols;
foreach(const QModelIndex & idx, selectedIndexes())
selectedCols.insert(idx.column());
return selectedCols;
}