| 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 | |
| 1979 | NetHackQtMessageWindow::NetHackQtMessageWindow() : |