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

Method TilePicker

outdated/win/Qt3/tileedit.cpp:142–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140};
141
142TilePicker::TilePicker(QWidget* parent) :
143 QTabWidget(parent)
144{
145 for (int i=0; tileset[i].name; i++) {
146 QString tabname = tileset[i].name;
147 tabname[0] = tabname[0].upper();
148 tileset[i].tab = new TilePickerTab(tileset[i].name,i+1,this);
149 addTab( tileset[i].tab, tabname );
150 connect( tileset[i].tab, SIGNAL(pick(const QImage&)),
151 this, SIGNAL(pick(const QImage&)) );
152 connect( tileset[i].tab, SIGNAL(pickName(const QString&)),
153 this, SIGNAL(pickName(const QString&)) );
154 }
155}
156
157void TilePicker::setCurrent(const QImage& i)
158{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected