mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
made error table read only
This commit is contained in:
parent
56ed0926bd
commit
100af80388
@ -34,16 +34,22 @@ void CSVWorld::ScriptErrorTable::addMessage (const std::string& message,
|
|||||||
|
|
||||||
setRowCount (row+1);
|
setRowCount (row+1);
|
||||||
|
|
||||||
setItem (row, 0, new QTableWidgetItem (QString::fromUtf8 (CSMDoc::Message::toString (severity).c_str())));
|
QTableWidgetItem *severityItem = new QTableWidgetItem (
|
||||||
|
QString::fromUtf8 (CSMDoc::Message::toString (severity).c_str()));
|
||||||
|
severityItem->setFlags (severityItem->flags() ^ Qt::ItemIsEditable);
|
||||||
|
setItem (row, 0, severityItem);
|
||||||
|
|
||||||
if (line!=-1)
|
if (line!=-1)
|
||||||
{
|
{
|
||||||
QTableWidgetItem *item = new QTableWidgetItem;
|
QTableWidgetItem *lineItem = new QTableWidgetItem;
|
||||||
item->setData (Qt::DisplayRole, line+1);
|
lineItem->setData (Qt::DisplayRole, line+1);
|
||||||
setItem (row, 1, item);
|
lineItem->setFlags (lineItem->flags() ^ Qt::ItemIsEditable);
|
||||||
|
setItem (row, 1, lineItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
setItem (row, 2, new QTableWidgetItem (QString::fromUtf8 (message.c_str())));
|
QTableWidgetItem *messageItem = new QTableWidgetItem (QString::fromUtf8 (message.c_str()));
|
||||||
|
messageItem->setFlags (messageItem->flags() ^ Qt::ItemIsEditable);
|
||||||
|
setItem (row, 2, messageItem);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user