author | zautrix <zautrix> | 2005-07-09 01:35:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-09 01:35:06 (UTC) |
commit | e27ad31c6016152449bbdaf4f9f387fa61183c37 (patch) (side-by-side diff) | |
tree | 615f3124d6f4f646287f126206ab93684caea7fb /microkde/kdialog.cpp | |
parent | 3c756588a4f650fc6f2e5971d56d56b74d67bfda (diff) | |
download | kdepimpi-e27ad31c6016152449bbdaf4f9f387fa61183c37.zip kdepimpi-e27ad31c6016152449bbdaf4f9f387fa61183c37.tar.gz kdepimpi-e27ad31c6016152449bbdaf4f9f387fa61183c37.tar.bz2 |
comp fixes
-rw-r--r-- | microkde/kdialog.cpp | 3 |
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 @@ -16,56 +16,57 @@ KDialog::KDialog( QWidget *parent, const char *name, bool modal ) : #ifdef DESKTOP_VERSION int KDialog::spacingHint() { return 7; } int KDialog::marginHint() { return 7; } int KDialog::spacingHintSmall() { return 4; } int KDialog::marginHintSmall() { return 4; } #else int KDialog::spacingHint() { return 3; } int KDialog::marginHint() { return 3; } int KDialog::spacingHintSmall() { return 1; } int KDialog::marginHintSmall() { return 1; } #endif KProgressDialog::KProgressDialog( QWidget *parent, const char *name, bool modal ) : QDialog( parent, name, modal ) { QVBoxLayout* lay= new QVBoxLayout ( this ); mLabel = new QLabel ( "abc",this ); mBar = new QProgressBar ( this ); mButton = new QPushButton ( i18n("Cancel"),this ); lay->addWidget ( mLabel ); lay->addWidget ( mBar ); lay->addWidget ( mButton ); connect ( mButton , SIGNAL ( clicked () ), this, SIGNAL ( cancelled () )); resize ( 220, sizeHint().height() +mLabel->sizeHint().height()); } void KProgressDialog::setLabelText ( const QString & t) { mLabel->setText( t ); } void KProgressDialog::setTotalSteps ( int totalSteps ) { setActiveWindow(); setFocus(); mBar->setTotalSteps ( totalSteps ); } void KProgressDialog::setProgress ( int progress ) { setActiveWindow(); setFocus(); mBar->setProgress ( progress ); } void KProgressDialog::accept() { - + mLabel->setText( i18n("Eeek, there I am ticklish!") ); + move ( geometry().x()-20,geometry().y()+20); // QDialog::accept(); } void KProgressDialog::reject() { emit cancelled (); //QDialog::reject(); } |