MCPcopy Index your code
hub / github.com/NetHack/NetHack / count

Method count

win/Qt/qt_menu.cpp:911–918  ·  view source on GitHub ↗

convert text count to numeric for final result

Source from the content-addressed store, hash-verified

909
910// convert text count to numeric for final result
911long 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
921NetHackQtTextWindow::NetHackQtTextWindow(QWidget *parent) :

Callers 7

DisplayMethod · 0.80
SearchMethod · 0.80
PutStrMethod · 0.80
AddToStrMethod · 0.80
RehighlightPromptMethod · 0.80
hilit_mesgsMethod · 0.80
SearchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected