convert text count to numeric for final result
| 909 | |
| 910 | // convert text count to numeric for final result |
| 911 | long NetHackQtMenuWindow::count(int row) |
| 912 | { |
| 913 | QTableWidgetItem *count = table->item(row, 0); |
| 914 | if (count == NULL) |
| 915 | return -1L; |
| 916 | QString cstr = count->text(); |
| 917 | return cstr.isEmpty() ? -1L : cstr.toLong(); |
| 918 | } |
| 919 | |
| 920 | // initialize a text window |
| 921 | NetHackQtTextWindow::NetHackQtTextWindow(QWidget *parent) : |
no outgoing calls
no test coverage detected