Commit Graph

5 Commits

Author SHA1 Message Date
Peinthor Rene
040be65489 fix memory leak 2014-05-30 18:59:59 +02:00
Martin Kleusberg
dac1ed1fdb Fix last commit.
Still had some debug code in there. Sorry!!
2014-05-24 20:03:13 +02:00
Martin Kleusberg
51be349c74 Fix loading of translation files
The QTranslator objects need to be stored as class attributes as
otherwise they are destroyed after the Application constructor is done
and translations won't work.
2014-05-24 20:01:22 +02:00
Martin Kleusberg
dc54c548b7 Implement file associations on MacOS by reacting on QFileOpenEvent
Remove the deactivated MacOS dependent code for reacting on Cocoa events
for file associations from main.cpp

Try to implement the same functionality by reacting on QFileOpenEvent in
the Application class.
2014-05-15 17:52:00 +02:00
Martin Kleusberg
08e8597ec8 Subclass QApplication and move most code from main() there
Create a new subclass of the QApplication class and move most of the
code in the main function to the constructor of the new class. This
makes the code a bit more consistent in terms of object orientedness,
makes it a little simpler and allows extending the new Application class
in the future.
2014-05-15 17:52:00 +02:00