1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-26 05:37:46 +00:00

exlpart: Make the table read only

This commit is contained in:
Joshua Goins 2023-10-12 21:43:42 -04:00
parent 2844380a65
commit 2a7e2d9e1e

View file

@ -25,6 +25,7 @@ void EXLPart::load(physis_Buffer file)
auto exl = physis_gamedata_read_excel_list(file); auto exl = physis_gamedata_read_excel_list(file);
if (exl.entry_count > 0) { if (exl.entry_count > 0) {
m_tableWidget->clear(); m_tableWidget->clear();
m_tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_tableWidget->setColumnCount(2); m_tableWidget->setColumnCount(2);
m_tableWidget->setRowCount(exl.entry_count); m_tableWidget->setRowCount(exl.entry_count);