summaryrefslogtreecommitdiffstats
path: root/kdialog/progresscanceldemo
blob: 42ea3d33e8828abacdf429e806a21bed98e085d4 (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