diff options
Diffstat (limited to 'kdialog/progresscanceldemo')
-rwxr-xr-x | kdialog/progresscanceldemo | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kdialog/progresscanceldemo b/kdialog/progresscanceldemo new file mode 100755 index 000000000..358ee54bd --- /dev/null +++ b/kdialog/progresscanceldemo @@ -0,0 +1,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 |