From b2b56bbd90db1bff9a6f76ba7bb76de338df2227 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 12 Nov 2018 15:10:17 +0000 Subject: [PATCH] Fix Fox log window item delegate to column mapping --- widgets/FoxLogWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/widgets/FoxLogWindow.cpp b/widgets/FoxLogWindow.cpp index c68158d13..252045359 100644 --- a/widgets/FoxLogWindow.cpp +++ b/widgets/FoxLogWindow.cpp @@ -34,10 +34,10 @@ FoxLogWindow::FoxLogWindow (QSettings * settings, Configuration const * configur change_font (configuration_->decoded_text_font ()); ui_->log_table_view->setModel (&fox_log_model_); ui_->log_table_view->setColumnHidden (0, true); - ui_->log_table_view->setItemDelegateForColumn (1, new ForeignKeyDelegate {configuration_->bands (), &fox_log_model_, 0, 6, this}); - ui_->log_table_view->setItemDelegateForColumn (2, new DateTimeAsSecsSinceEpochDelegate {this}); - ui_->log_table_view->setItemDelegateForColumn (3, new CallsignDelegate {this}); - ui_->log_table_view->setItemDelegateForColumn (4, new MaidenheadLocatorDelegate {this}); + ui_->log_table_view->setItemDelegateForColumn (1, new DateTimeAsSecsSinceEpochDelegate {this}); + ui_->log_table_view->setItemDelegateForColumn (2, new CallsignDelegate {this}); + ui_->log_table_view->setItemDelegateForColumn (3, new MaidenheadLocatorDelegate {this}); + ui_->log_table_view->setItemDelegateForColumn (6, new ForeignKeyDelegate {configuration_->bands (), &fox_log_model_, 0, 6, this}); ui_->log_table_view->setSelectionMode (QTableView::SingleSelection); auto horizontal_header = ui_->log_table_view->horizontalHeader (); horizontal_header->setStretchLastSection (true);