Faster Qt startup

--HG--
branch : develop
hg/feature/material-editor
kaetemi 9 years ago
parent cda8c650a5
commit fd950a692b

@ -16,6 +16,8 @@
#endif
#include "../shared_widgets/common.h"
int main(int argc, char *argv[])
{
@ -25,6 +27,7 @@ int main(int argc, char *argv[])
// the specific initialization routines you do not need.
NLMISC::CApplicationContext myApplicationContext;
NLQT::preApplication();
Q_INIT_RESOURCE(tile_edit_qt);
QApplication app(argc, argv);

@ -25,6 +25,8 @@
#include <vector>
#include <string>
#include "../../3d/shared_widgets/common.h"
class CCmdLineParser
{
public:
@ -105,6 +107,7 @@ int main(int argc, char **argv)
}
#endif
NLQT::preApplication();
QApplication app(argc, argv);
QApplication::setWindowIcon(QIcon(":/icons/nevraxpill.ico"));

Loading…
Cancel
Save