Skip to content

Commit

Permalink
a little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AmericanEnglish committed Nov 23, 2017
1 parent 2167659 commit 1f0d331
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cpp/widgets/reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1f0d331

Please sign in to comment.