mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
41f60436fe
--progressbar dialog in kdialog, which was recently implemented by Stephen Binner. I also have an update to the main kdialog tutorial, but need to rebuild it first. svn path=/trunk/kdebase/kdialog/; revision=322729
11 lines
265 B
Plaintext
Executable file
11 lines
265 B
Plaintext
Executable file
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
|