gui: Set signed int type for the error lines (#3348)

This commit is contained in:
Georgiy Komarov 2021-07-22 20:55:23 +03:00 committed by GitHub
parent 388b7a0fae
commit 1457993f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ Q_DECLARE_METATYPE(ErrorItem)
class ErrorLine {
public:
QString file;
unsigned int line;
int line;
QString file0;
QString errorId;
bool incomplete;

View File

@ -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;
}