MCPcopy Create free account
hub / github.com/KDE/kdevelop / subtractFromEachMessageTimeout

Method subtractFromEachMessageTimeout

kdevplatform/shell/statusbar.cpp:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void StatusBar::subtractFromEachMessageTimeout(int subtrahend, const IStatus* exceptThisMessage)
131{
132 Q_ASSERT(subtrahend > 0);
133
134 QMutableHashIterator<IStatus*, Message> it = m_messages;
135
136 while (it.hasNext()) {
137 it.next();
138 if (it.key() != exceptThisMessage && it.value().timeout > 0) {
139 it.value().timeout -= subtrahend;
140 if (it.value().timeout <= 0)
141 it.remove();
142 }
143 }
144}
145
146void StatusBar::slotTimeout()
147{

Callers

nothing calls this directly

Calls 5

hasNextMethod · 0.45
nextMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected