gui: Set signed int type for the error lines (#3348)
This commit is contained in:
parent
388b7a0fae
commit
1457993f84
|
@ -110,7 +110,7 @@ Q_DECLARE_METATYPE(ErrorItem)
|
|||
class ErrorLine {
|
||||
public:
|
||||
QString file;
|
||||
unsigned int line;
|
||||
int line;
|
||||
QString file0;
|
||||
QString errorId;
|
||||
bool incomplete;
|
||||
|
|
|
@ -138,7 +138,7 @@ QStandardItem *ResultsTree::createCheckboxItem(bool checked)
|
|||
QStandardItem *ResultsTree::createLineNumberItem(const QString &linenumber)
|
||||
{
|
||||
QStandardItem *item = new QStandardItem();
|
||||
item->setData(QVariant(linenumber.toULongLong()), Qt::DisplayRole);
|
||||
item->setData(QVariant(linenumber.toInt()), Qt::DisplayRole);
|
||||
item->setToolTip(linenumber);
|
||||
item->setTextAlignment(Qt::AlignRight | Qt::AlignVCenter);
|
||||
item->setEditable(false);
|
||||
|
@ -1318,7 +1318,7 @@ void ResultsTree::readErrorItem(const QStandardItem *error, ErrorItem *item) con
|
|||
|
||||
QErrorPathItem e;
|
||||
e.file = stripPath(child_data[FILENAME].toString(), true);
|
||||
e.line = child_data[LINE].toUInt();
|
||||
e.line = child_data[LINE].toInt();
|
||||
e.info = child_data[MESSAGE].toString();
|
||||
item->errorPath << e;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue