mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-26 05:37:46 +00:00
Add support for showing excel data types in column headers
This commit is contained in:
parent
42d9234b70
commit
e3e71c10ad
2 changed files with 5 additions and 1 deletions
2
libxiv
2
libxiv
|
@ -1 +1 @@
|
||||||
Subproject commit 58cd40912f15c4c66d157eab4ed708755803c753
|
Subproject commit fbe386c958e5caa716aac13c82e05af0c4abcbe7
|
|
@ -55,6 +55,10 @@ MainWindow::MainWindow(GameData& data) : data(data) {
|
||||||
auto newItem = new QTableWidgetItem(exd.rows[i].data[j].data.c_str());
|
auto newItem = new QTableWidgetItem(exd.rows[i].data[j].data.c_str());
|
||||||
|
|
||||||
tableWidget->setItem(i, j, newItem);
|
tableWidget->setItem(i, j, newItem);
|
||||||
|
|
||||||
|
QTableWidgetItem* headerItem = new QTableWidgetItem();
|
||||||
|
headerItem->setText(exd.rows[i].data[j].type.c_str());
|
||||||
|
tableWidget->setHorizontalHeaderItem(j, headerItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue