summaryrefslogtreecommitdiffabout
path: root/microkde
Unidiff
Diffstat (limited to 'microkde') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/microkde/kdialog.cpp b/microkde/kdialog.cpp
index f9e0126..8398956 100644
--- a/microkde/kdialog.cpp
+++ b/microkde/kdialog.cpp
@@ -40,32 +40,33 @@ KProgressDialog::KProgressDialog( QWidget *parent, const char *name, bool modal
40 connect ( mButton , SIGNAL ( clicked () ), this, SIGNAL ( cancelled () )); 40 connect ( mButton , SIGNAL ( clicked () ), this, SIGNAL ( cancelled () ));
41 resize ( 220, sizeHint().height() +mLabel->sizeHint().height()); 41 resize ( 220, sizeHint().height() +mLabel->sizeHint().height());
42 42
43} 43}
44 44
45void KProgressDialog::setLabelText ( const QString & t) 45void KProgressDialog::setLabelText ( const QString & t)
46{ 46{
47 mLabel->setText( t ); 47 mLabel->setText( t );
48} 48}
49 49
50void KProgressDialog::setTotalSteps ( int totalSteps ) 50void KProgressDialog::setTotalSteps ( int totalSteps )
51{ 51{
52 setActiveWindow(); 52 setActiveWindow();
53 setFocus(); 53 setFocus();
54 mBar->setTotalSteps ( totalSteps ); 54 mBar->setTotalSteps ( totalSteps );
55} 55}
56void KProgressDialog::setProgress ( int progress ) 56void KProgressDialog::setProgress ( int progress )
57{ 57{
58 setActiveWindow(); 58 setActiveWindow();
59 setFocus(); 59 setFocus();
60 mBar->setProgress ( progress ); 60 mBar->setProgress ( progress );
61} 61}
62void KProgressDialog::accept() 62void KProgressDialog::accept()
63{ 63{
64 64 mLabel->setText( i18n("Eeek, there I am ticklish!") );
65 move ( geometry().x()-20,geometry().y()+20);
65 // QDialog::accept(); 66 // QDialog::accept();
66} 67}
67void KProgressDialog::reject() 68void KProgressDialog::reject()
68{ 69{
69 emit cancelled (); 70 emit cancelled ();
70 //QDialog::reject(); 71 //QDialog::reject();
71} 72}