Ejemplo n.º 1
0
void AbstractTextFormatter::fetchHeaderList(
    QStringList *headers, const SharedUiItem &item) const {
  Q_ASSERT(headers);
  if (_columnHeadersEnabled) {
    int n = item.uiSectionCount();
    for (int i = 0; i < n; ++i)
      headers->append(item.uiHeaderString(i));
  }
}
Ejemplo n.º 2
0
 SharedUiItemLogWrapperData(SharedUiItem wrapped, QDateTime timestamp)
   : _id(QString::number(_sequence.fetchAndAddOrdered(1))),
     _wrapped(wrapped), _timestamp(timestamp),
     _timestampSection(wrapped.uiSectionCount()) { }