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

Function tryload

win/Qt/qt_rip.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#endif
33
34static void
35tryload(QPixmap& pm, const char* fn)
36{
37 if (!pm.load(fn)) {
38 QString msg;
39 msg = nh_qsprintf("Cannot load \"%s\"", fn);
40 QMessageBox::warning(NetHackQtBind::mainWidget(), "IO Error", msg);
41 }
42}
43
44NetHackQtRIP::NetHackQtRIP(QWidget* parent) :
45 QWidget(parent)

Callers 1

NetHackQtRIPMethod · 0.70

Calls 1

nh_qsprintfFunction · 0.85

Tested by

no test coverage detected