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

Method cancel

kdevplatform/shell/progresswidget/progressmanager.cpp:72–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void ProgressItem::cancel()
73{
74 if ( mCanceled || !mCanBeCanceled ) {
75 return;
76 }
77
78 qCDebug(SHELL) << label();
79 mCanceled = true;
80 // Cancel all children.
81 const QList<ProgressItem*> kids = mChildren.keys();
82 for (ProgressItem* kid : kids) {
83 if ( kid->canBeCanceled() ) {
84 kid->cancel();
85 }
86 }
87 setStatus( i18nc("@info", "Aborting..." ) );
88 emit progressItemCanceled( this );
89}
90
91void ProgressItem::setProgress( unsigned int v )
92{

Callers 2

slotAbortAllMethod · 0.45
slotItemCanceledMethod · 0.45

Calls 3

labelFunction · 0.85
canBeCanceledMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected