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

Method NetHackQtTextWindow

outdated/win/Qt3/qt3_win.cpp:3244–3265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3242}
3243
3244NetHackQtTextWindow::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
3267void NetHackQtTextWindow::doUpdate()
3268{

Callers

nothing calls this directly

Calls 1

mainWidgetMethod · 0.80

Tested by

no test coverage detected