dolphin/kdialog/progressdemo
Laurent Montel 2d61f749b7 kdialog is not generated by default in local
svn path=/trunk/KDE/kdebase/apps/; revision=838244
2008-07-27 11:31:50 +00:00

17 lines
667 B
Text
Executable file

dbusRef=`kdialog --geometry 300x200+100-100 --progressbar "Initialising" 6`
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 1
qdbus $dbusRef setLabelText "Thinking really hard"
sleep 2
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 2
sleep 2
qdbus $dbusRef setLabelText "Thinking some more"
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 3
sleep 2
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 4
sleep 2
qdbus $dbusRef setLabelText "Finishing up"
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 5
sleep 1
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 6
sleep 1
qdbus $dbusRef org.kde.kdialog.ProgressDialog.close