MCPcopy Create free account
hub / github.com/KDE/labplot / toString

Method toString

src/3rdparty/QXlsx/source/xlsxcellreference.cpp:131–144  ·  view source on GitHub ↗

! Convert the Reference to string notation, such as "A1" or "$A$1". If current object is invalid, an empty string will be returned. */

Source from the content-addressed store, hash-verified

129 If current object is invalid, an empty string will be returned.
130*/
131QString CellReference::toString(bool row_abs, bool col_abs) const
132{
133 if (!isValid())
134 return QString();
135
136 QString cell_str;
137 if (col_abs)
138 cell_str.append(QLatin1Char('$'));
139 cell_str.append(col_to_name(_column));
140 if (row_abs)
141 cell_str.append(QLatin1Char('$'));
142 cell_str.append(QString::number(_row));
143 return cell_str;
144}
145
146/*!
147 * Returns true if the Reference is valid.

Callers

nothing calls this directly

Calls 3

col_to_nameFunction · 0.85
appendMethod · 0.80
QStringClass · 0.50

Tested by

no test coverage detected