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

Method setText

src/widgets/FadingIndicator.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void setText(const QString &text)
60 {
61 m_pixmap = QPixmap();
62 m_label->setText(text);
63 m_effect->setOpacity(.6); // because of the fat opaque background color
64 layout()->setSizeConstraint(QLayout::SetFixedSize);
65 adjustSize();
66 QWidget *parent = parentWidget();
67 QPoint pos = parent ? (parent->rect().center() - rect().center()) : QPoint();
68 if (pixmapIndicator && pixmapIndicator->geometry().intersects(QRect(pos, size())))
69 pos.setY(pixmapIndicator->geometry().bottom() + 1);
70 move(pos);
71 }
72
73 void setPixmap(const QString &uri)
74 {

Callers 15

historyNextMethod · 0.80
historyPreviousMethod · 0.80
historyEndMethod · 0.80
EditorInspectorDockMethod · 0.80
updateEditorInfoMethod · 0.80
newItemMethod · 0.80
updatePositionInfoMethod · 0.80
updateLanguageNameMethod · 0.80
editorRenamedMethod · 0.80
newResultsEntryMethod · 0.80
updateSearchStatusMethod · 0.80

Calls

no outgoing calls

Tested by 5

EditorInspectorDockMethod · 0.64
updateEditorInfoMethod · 0.64
newItemMethod · 0.64
updatePositionInfoMethod · 0.64
updateLanguageNameMethod · 0.64