MCPcopy Create free account
hub / github.com/KDE/kdiff3 / slotSaveForLater

Method slotSaveForLater

kdiff3fileitemactionplugin/kdiff3fileitemaction.cpp:249–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void KDiff3FileItemAction::slotSaveForLater()
250{
251 if(!m_list.isEmpty() && s_pHistory)
252 {
253 while(s_pHistory->count() >= 10)
254 {
255 s_pHistory->removeLast();
256 }
257 const QString file = Utils::urlToString(m_list.first());
258 s_pHistory->removeAll(file);
259 s_pHistory->prepend(file);
260 }
261}
262
263void KDiff3FileItemAction::slotClearList()
264{

Callers

nothing calls this directly

Calls 2

prependMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected