summaryrefslogtreecommitdiffstats
path: root/kdialog/progresscanceldemo
blob: 358ee54bd89f97c3a6c35d6160c76b6041a79c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
dcopRef=`./kdialog --progressbar "Press Cancel at Any time" 10`
dcop $dcopRef showCancelButton true

until test "true" == `dcop $dcopRef wasCancelled`; do
  sleep 1
  inc=$((`dcop $dcopRef progress` + 1))
  dcop $dcopRef setProgress $inc;
done

dcop $dcopRef close