MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / setPixmap

Method setPixmap

src/widgets/FadingIndicator.cpp:73–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void setPixmap(const QString &uri)
74 {
75 m_label->hide();
76 m_pixmap.load(uri);
77 layout()->setSizeConstraint(QLayout::SetNoConstraint);
78 resize(m_pixmap.size() / m_pixmap.devicePixelRatio());
79 QWidget *parent = parentWidget();
80 QPoint pos = parent ? (parent->rect().center() - rect().center()) : QPoint();
81 if (textIndicator && textIndicator->geometry().intersects(QRect(pos, size())))
82 pos.setY(textIndicator->geometry().bottom() + 1);
83 move(pos);
84 }
85
86 void run(int ms)
87 {

Callers 2

showPixmapFunction · 0.80
PreferencesDialogMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected