From e3e71c10adc295715873ed8ba4ad625c5578f215 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 11 Apr 2022 11:58:06 -0400 Subject: [PATCH] Add support for showing excel data types in column headers --- libxiv | 2 +- src/mainwindow.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libxiv b/libxiv index 58cd409..fbe386c 160000 --- a/libxiv +++ b/libxiv @@ -1 +1 @@ -Subproject commit 58cd40912f15c4c66d157eab4ed708755803c753 +Subproject commit fbe386c958e5caa716aac13c82e05af0c4abcbe7 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 25001b8..b256f28 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -55,6 +55,10 @@ MainWindow::MainWindow(GameData& data) : data(data) { auto newItem = new QTableWidgetItem(exd.rows[i].data[j].data.c_str()); tableWidget->setItem(i, j, newItem); + + QTableWidgetItem* headerItem = new QTableWidgetItem(); + headerItem->setText(exd.rows[i].data[j].type.c_str()); + tableWidget->setHorizontalHeaderItem(j, headerItem); } } }