Skip to content

Commit

Permalink
Prefix QTextStream operators with Qt::
Browse files Browse the repository at this point in the history
Change-Id: I128769cb78abb8168f0bf29cef8c693073793ced
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
  • Loading branch information
laknoll committed May 3, 2019
1 parent 1f1e04f commit e929808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/text/qtextmarkdownwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ void QTextMarkdownWriter::writeTable(const QAbstractTableModel &table)
QString s = table.headerData(col, Qt::Horizontal).toString();
m_stream << "|" << s << QString(tableColumnWidths[col] - s.length(), Space);
}
m_stream << "|" << endl;
m_stream << "|" << Qt::endl;
for (int col = 0; col < tableColumnWidths.length(); ++col)
m_stream << '|' << QString(tableColumnWidths[col], QLatin1Char('-'));
m_stream << '|'<< endl;
m_stream << '|'<< Qt::endl;

// write the body
for (int row = 0; row < table.rowCount(); ++row) {
for (int col = 0; col < table.columnCount(); ++col) {
QString s = table.data(table.index(row, col)).toString();
m_stream << "|" << s << QString(tableColumnWidths[col] - s.length(), Space);
}
m_stream << '|'<< endl;
m_stream << '|'<< Qt::endl;
}
}

Expand Down

0 comments on commit e929808

Please sign in to comment.