From 1f0d331502538f26c5f961ca29a7ccf3ee6eecb3 Mon Sep 17 00:00:00 2001 From: Carlos Barajas Date: Thu, 23 Nov 2017 07:09:33 -0500 Subject: [PATCH] a little cleanup --- cpp/widgets/reader.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cpp/widgets/reader.cpp b/cpp/widgets/reader.cpp index 9cb1cc3..97c5ba5 100644 --- a/cpp/widgets/reader.cpp +++ b/cpp/widgets/reader.cpp @@ -407,22 +407,6 @@ void SimpleTableView::keyPressEvent(QKeyEvent *event) { // Third column toClip += cells.at(3*i+2).data().toString() + "\n"; } - // QString text; - // int currentRow = 0; // To determine when to insert newlines - // foreach (const QModelIndex& cell, cells) { - // if (text.length() == 0) { - // // First item - // } else if (cell.row() != currentRow) { - // // New row - // text += '\n'; - // } else { - // // Next cell - // text += '\t'; - // } - // currentRow = cell.row(); - // text += cell.data().toString(); - // } -// qDebug() << toClip; QApplication::clipboard()->setText(toClip); }