[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: [PATCH] Speed up gpg command execution by factor 2
From:       Michael =?iso-8859-1?q?H=E4ckel?= <haeckel () kde ! org>
Date:       2002-09-12 10:55:03
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 12 September 2002 00:59, Ingo Klöcker wrote:
>
> I have a little problem: If a command takes to long (e.g. more than 1
> second) then a message box should pop up which informs the user about
> what's going on and gives the user the chance to abort the operation
> (e.g. when the keyserver isn't reachable).
>
> Currently I use the following code:
> mProgressDlg = new KProgressDialog( 0, 0, caption, text, true );
> mProgressDlg->setMinimumDuration( 1000 );
> mProgressDlg->exec();

What about:
QTimer::singleShot(1000, mDialog, SLOT(exec());

Disclaimer: I didn't test it.

Regards,
Michael Häckel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9gHKLe9KEPyN2R8URAoplAJoDtvgX1D9oJlQeT9P9K9TWvinnvACgiS1u
9FKtdjoO1S5+MfZYdivakso=
=5O5u
-----END PGP SIGNATURE-----
_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic