| 3242 | } |
| 3243 | |
| 3244 | NetHackQtTextWindow::NetHackQtTextWindow(NetHackQtKeyBuffer& ks) : |
| 3245 | QDialog(qApp->mainWidget(),0,FALSE), |
| 3246 | keysource(ks), |
| 3247 | use_rip(FALSE), |
| 3248 | str_fixed(FALSE), |
| 3249 | ok("Dismiss",this), |
| 3250 | search("Search",this), |
| 3251 | lines(new NetHackQtTextListBox(this)), |
| 3252 | rip(this) |
| 3253 | { |
| 3254 | ok.setDefault(TRUE); |
| 3255 | connect(&ok,SIGNAL(clicked()),this,SLOT(accept())); |
| 3256 | connect(&search,SIGNAL(clicked()),this,SLOT(Search())); |
| 3257 | connect(qt_settings,SIGNAL(fontChanged()),this,SLOT(doUpdate())); |
| 3258 | |
| 3259 | QVBoxLayout* vb = new QVBoxLayout(this); |
| 3260 | vb->addWidget(&rip); |
| 3261 | QHBoxLayout* hb = new QHBoxLayout(vb); |
| 3262 | hb->addWidget(&ok); |
| 3263 | hb->addWidget(&search); |
| 3264 | vb->addWidget(lines); |
| 3265 | } |
| 3266 | |
| 3267 | void NetHackQtTextWindow::doUpdate() |
| 3268 | { |
nothing calls this directly
no test coverage detected