diff options
author | bd <bdunaisky@umass.edu> | 2025-04-02 04:05:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-02 04:05:18 +0000 |
commit | 9fb95d655393777dde5929182f94de36f903821d (patch) | |
tree | 4462f35895737460a01fab891a15f87aba2efb70 /gui/gui.cc | |
parent | 24f0bd8af57381ab3112b5774d4ad23ac80f0718 (diff) | |
parent | 3eeb345d673bee6d62b04fc8a8a95ab822dc1e45 (diff) |
Merge pull request #46 from bdunahu/bdunahu
Ensure all stages only do work if they are not 'OK'
Diffstat (limited to 'gui/gui.cc')
-rw-r--r-- | gui/gui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -63,7 +63,7 @@ void displayArrayHTML(QTextEdit *textEdit, const std::array<int, GPR_NUM> &data) QString tableText = "<table border='1' cellspacing='0' cellpadding='8' style='border-collapse: collapse; width: 100%; border: 2px solid black;'>"; tableText += "<tr>"; - int index = 1; + int index = 0; for (int value : data) { tableText += QString("<td align='center' style='border: 2px solid black; min-width: 60px; padding: 10px;'>" "%1 <sup style='font-size: 10px; font-weight: bold; color: black;'>%2</sup>" @@ -83,7 +83,7 @@ void displayTableHTML(QTextEdit *textEdit, const std::vector<std::array<signed i textEdit->setReadOnly(false); QString tableText = "<table border='1' cellspacing='0' cellpadding='8' style='border-collapse: collapse; width: 100%; border: 2px solid black;'>"; - int index = 1; + int index = 0; for (const auto &row : data) { tableText += "<tr>"; for (signed int value : row) { @@ -118,7 +118,7 @@ void browseAndUploadFile(QTextEdit *textEdit) { QTextStream in(&file); QString content; - int lineNumber = 1; + int lineNumber = 0; while (!in.atEnd()) { QString line = in.readLine(); |