UI Nits: Ride Navigator weird gap fix

Workaround that by putting new columns at the left
not at the right and the problem goes away. Suspect
it is related to issues with QT and expandLastColumn()
which also displayed issues.
This commit is contained in:
Mark Liversedge
2012-12-03 16:21:21 +00:00
parent 2a2ef7ba08
commit d13b7bd979

View File

@@ -871,6 +871,7 @@ RideNavigator::dropEvent(QDropEvent *event)
if (name == "BikeScore?") name = QTextEdit("BikeScore™").toPlainText();
tableView->setColumnHidden(logicalHeadings.indexOf(name), false);
tableView->setColumnWidth(logicalHeadings.indexOf(name), 50);
tableView->header()->moveSection(tableView->header()->visualIndex(logicalHeadings.indexOf(name)), 1);
columnsChanged();
}