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 {
|
class ErrorLine {
|
||||||
public:
|
public:
|
||||||
QString file;
|
QString file;
|
||||||
unsigned int line;
|
int line;
|
||||||
QString file0;
|
QString file0;
|
||||||
QString errorId;
|
QString errorId;
|
||||||
bool incomplete;
|
bool incomplete;
|
||||||
|
|
|
@ -138,7 +138,7 @@ QStandardItem *ResultsTree::createCheckboxItem(bool checked)
|
||||||
QStandardItem *ResultsTree::createLineNumberItem(const QString &linenumber)
|
QStandardItem *ResultsTree::createLineNumberItem(const QString &linenumber)
|
||||||
{
|
{
|
||||||
QStandardItem *item = new QStandardItem();
|
QStandardItem *item = new QStandardItem();
|
||||||
item->setData(QVariant(linenumber.toULongLong()), Qt::DisplayRole);
|
item->setData(QVariant(linenumber.toInt()), Qt::DisplayRole);
|
||||||
item->setToolTip(linenumber);
|
item->setToolTip(linenumber);
|
||||||
item->setTextAlignment(Qt::AlignRight | Qt::AlignVCenter);
|
item->setTextAlignment(Qt::AlignRight | Qt::AlignVCenter);
|
||||||
item->setEditable(false);
|
item->setEditable(false);
|
||||||
|
@ -1318,7 +1318,7 @@ void ResultsTree::readErrorItem(const QStandardItem *error, ErrorItem *item) con
|
||||||
|
|
||||||
QErrorPathItem e;
|
QErrorPathItem e;
|
||||||
e.file = stripPath(child_data[FILENAME].toString(), true);
|
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();
|
e.info = child_data[MESSAGE].toString();
|
||||||
item->errorPath << e;
|
item->errorPath << e;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue