mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Faster Qt startup
This commit is contained in:
parent
b9fd5bc3a3
commit
e7b977c780
2 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,8 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../shared_widgets/common.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -25,6 +27,7 @@ int main(int argc, char *argv[])
|
||||||
// the specific initialization routines you do not need.
|
// the specific initialization routines you do not need.
|
||||||
NLMISC::CApplicationContext myApplicationContext;
|
NLMISC::CApplicationContext myApplicationContext;
|
||||||
|
|
||||||
|
NLQT::preApplication();
|
||||||
Q_INIT_RESOURCE(tile_edit_qt);
|
Q_INIT_RESOURCE(tile_edit_qt);
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "../../3d/shared_widgets/common.h"
|
||||||
|
|
||||||
class CCmdLineParser
|
class CCmdLineParser
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -105,6 +107,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
NLQT::preApplication();
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
QApplication::setWindowIcon(QIcon(":/icons/nevraxpill.ico"));
|
QApplication::setWindowIcon(QIcon(":/icons/nevraxpill.ico"));
|
||||||
|
|
Loading…
Reference in a new issue