Warning, /utilities/kdialog/tests/progresscanceldemo is written in an unsupported language. File is not indexed.

0001 dbusRef=`kdialog --progressbar "Press Cancel at Any time" 10`
0002 qdbus $dbusRef org.kde.kdialog.ProgressDialog.showCancelButton true
0003 
0004 while test "false" = "`qdbus $dbusRef org.kde.kdialog.ProgressDialog.wasCancelled 2>/dev/null`"; do
0005   inc=$((`qdbus $dbusRef org.freedesktop.DBus.Properties.Get org.kde.kdialog.ProgressDialog value` + 1))
0006   qdbus $dbusRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value $inc;
0007   sleep 1
0008 done
0009