MCPcopy Create free account
hub / github.com/NetHack/NetHack / paintCell

Method paintCell

outdated/win/Qt3/qt3_win.cpp:1953–1976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1951 }
1952
1953 virtual void paintCell(QPainter *p, int row, int col)
1954 {
1955 bool sel=FALSE;
1956 UData& uitem=item(row);
1957
1958 if (!sel && row < count-uncleared) {
1959 p->setPen(darkGray);
1960 } else {
1961 p->setPen(black);
1962 }
1963
1964 if (uitem.attr) {
1965 // XXX only bold
1966 QFont bold(font().family(),font().pointSize(),QFont::Bold);
1967 p->setFont(bold);
1968 }
1969
1970 p->drawText(3, 0, cellWidth(), cellHeight(),
1971 AlignLeft|AlignVCenter, uitem.text);
1972
1973 if (uitem.attr) {
1974 p->setFont(font());
1975 }
1976 }
1977};
1978
1979NetHackQtMessageWindow::NetHackQtMessageWindow() :

Callers

nothing calls this directly

Calls 1

setFontMethod · 0.45

Tested by

no test coverage detected