[Uml-devel] [Bug 58809] Image export via command line

Daniel Calviño Sánchez danxuliu at gmail.com
Wed Apr 5 10:37:14 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=58809         




------- Additional Comments From danxuliu gmail com  2006-04-05 04:37 -------
Created an attachment (id=15463)
 --> (http://bugs.kde.org/attachment.cgi?id=15463&action=view)
Fixed command line crashes

At least I managed to get it work. I thought that the problem could be that
KIO::NetAccess expected the QT main loop to be running, but as the "app.exec()"
wasn't called when exporting, it caused the strange behaviour (it could be a
stupid hypothesis... but as I don't know anything about the internal code of QT
nor KIO classes it seemed fine to me :P ).

So, using events, I made that the exportAllViews code execution was scheduled
to be processed until the QT loop was running. Once the export is made, a close
event is sent so the application finishes. I don't know if it's the optimal way
to do it, but it works! ;)

As I was modifying the main.cpp file I have also applied some "extract method"
refactoring pattern, and also made that the GUI is kept hidden when the
application is executed using the export all views option.




More information about the umbrello-devel mailing list