libkleo
Go to the documentation of this file.
35 #ifndef QT_NO_PROGRESSDIALOG
49 QWidget * creator, Qt::WindowFlags f )
56 setAutoReset(
false );
57 setAutoClose(
false );
58 setLabelText( baseText );
62 connect( job, SIGNAL(progress(
QString,
int,
int)),
63 SLOT(slotProgress(
QString,
int,
int)) );
64 connect( job, SIGNAL(done()), SLOT(slotDone()) );
65 connect(
this, SIGNAL(canceled()),
66 job, SLOT(slotCancel()) );
68 QTimer::singleShot( minimumDuration(),
this, SLOT(forceShow()) );
76 if ( 0 < ms && ms < minimumDuration() )
77 QTimer::singleShot( ms,
this, SLOT(forceShow()) );
78 QProgressDialog::setMinimumDuration( ms );
81 void Kleo::ProgressDialog::slotProgress(
const QString & what,
int current,
int total ) {
82 kDebug(5150) <<
"Kleo::ProgressDialog::slotProgress( \"" << what <<
"\","
83 << current <<
"," << total <<
")";
84 if ( mBaseText.isEmpty() )
86 else if ( what.isEmpty() )
87 setLabelText( mBaseText );
89 setLabelText( i18n(
"%1: %2", mBaseText, what ) );
90 setRange( current, total );
93 void Kleo::ProgressDialog::slotDone() {
94 kDebug(5150) <<
"Kleo::ProgressDialog::slotDone()";
100 #include "progressdialog.moc"
102 #endif // QT_NO_PROGRESSDIALOG
A QProgressBar with self-powered busy indicator.
void setMinimumDuration(int ms)
ProgressDialog(Job *job, const QString &baseText, QWidget *creator=0, Qt::WindowFlags f=0)
An abstract base class for asynchronous crypto operations.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.