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

Method SmallToolButton

win/Qt/qt_main.cpp:511–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509class SmallToolButton : public QToolButton {
510public:
511 SmallToolButton(const QPixmap &pm, const QString &textLabel,
512 const QString &grouptext,
513 QObject *receiver, const char *slot,
514 QWidget *parent) :
515 QToolButton(parent)
516 {
517 setIcon(QIcon(pm));
518 setToolTip(textLabel);
519 setStatusTip(grouptext);
520 connect(this, SIGNAL(clicked(bool)), receiver, slot);
521 }
522
523 QSize sizeHint() const
524 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected