mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 21:27:45 +00:00
exlpart: Make the table read only
This commit is contained in:
parent
2844380a65
commit
2a7e2d9e1e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue