| 20 | NetHackQtTextListBox(QWidget* parent = NULL) : QListWidget(parent) { } |
| 21 | |
| 22 | int TotalWidth() const |
| 23 | { |
| 24 | int width = 0; |
| 25 | QFontMetrics fm(font()); |
| 26 | for (int i = 0; i < count(); i++) { |
| 27 | int lwidth = fm.QFM_WIDTH(item(i)->text()); |
| 28 | width = std::max(width, lwidth); |
| 29 | } |
| 30 | return width; |
| 31 | } |
| 32 | int TotalHeight() const |
| 33 | { |
| 34 | QFontMetrics fm(font()); |
nothing calls this directly
no outgoing calls
no test coverage detected