[Uml-devel] Re: kdesdk/umbrello/umbrello
George Staikos
staikos at kde.org
Wed Dec 15 17:16:08 UTC 2004
We had this issue in Kst too. We worked around it by figuring out which
operations were slow and postponing them. We still allow UI updates, just
not complex things.
On Wednesday 15 December 2004 19:45, Oliver Kellogg wrote:
> Revert the kapp->processEvents(), it just makes import take longer
>
> --- kdesdk/umbrello/umbrello/classimport.cpp #1.55:1.56
> @@ -12,5 +12,5 @@
> // qt/kde includes
> #include <qregexp.h>
> -#include <kapplication.h>
> +//#include <kapplication.h>
> #include <kmessagebox.h>
> #include <kdebug.h>
> @@ -271,5 +271,10 @@ void ClassImport::importCPP(QStringList
> QString fileName = (*fileIT);
> m_umldoc->writeToStatusBar(i18n("Importing file:
> %1").arg(fileName)); - kapp->processEvents();
> +
> + /// kapp->processEvents();
> + // Invoking kapp->processEvents() improves responsiveness
> when importing + // many large header files but slows down
> import because the list view is + // intermittently updated.
> +
> m_driver->parseFile( fileName );
> TranslationUnitAST *ast = m_driver->translationUnit(
> fileName );
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the umbrello-devel
mailing list