Commit 752fac69 authored by Andreas Pakulat's avatar Andreas Pakulat

Add a wait cursor while creating the image as it might take some time.

parent e1ccd838
......@@ -25,6 +25,7 @@
#include <qlayout.h>
#include <qfileinfo.h>
#include <qlistview.h>
#include <qapplication.h>
#include <qsplitter.h>
#include "kdevlanguagesupport.h"
......@@ -103,6 +104,7 @@ void HierarchyDialog::save()
if(dlg.exec() && dlg.selectedURL().isLocalFile())
{
QFileInfo fi(dlg.selectedURL().pathOrURL());
QApplication::setOverrideCursor( Qt::waitCursor );
KDevLanguageSupport *ls = m_part->languageSupport();
for (QMap<QString, ClassDom>::const_iterator it = classes.begin(); it != classes.end(); ++it)
{
......@@ -120,6 +122,7 @@ void HierarchyDialog::save()
}
}
digraph->process(fi.absFilePath(), fi.extension());
QApplication::restoreOverrideCursor();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment