equal
deleted
inserted
replaced
890 */ |
890 */ |
891 void QApplicationPrivate::initialize() |
891 void QApplicationPrivate::initialize() |
892 { |
892 { |
893 QWidgetPrivate::mapper = new QWidgetMapper; |
893 QWidgetPrivate::mapper = new QWidgetMapper; |
894 QWidgetPrivate::allWidgets = new QWidgetSet; |
894 QWidgetPrivate::allWidgets = new QWidgetSet; |
|
895 |
|
896 #if !defined(Q_WS_X11) && !defined(Q_WS_QWS) && !defined(Q_CC_NOKIAX86) |
|
897 // initialize the graphics system - on X11 this is initialized inside |
|
898 // qt_init() in qapplication_x11.cpp because of several reasons. |
|
899 // On QWS, the graphics system is set by the QScreen plugin. |
|
900 graphics_system = QGraphicsSystemFactory::create(graphics_system_name); |
|
901 #endif |
|
902 |
895 if (qt_appType != QApplication::Tty) |
903 if (qt_appType != QApplication::Tty) |
896 (void) QApplication::style(); // trigger creation of application style |
904 (void) QApplication::style(); // trigger creation of application style |
897 // trigger registering of QVariant's GUI types |
905 // trigger registering of QVariant's GUI types |
898 qRegisterGuiVariant(); |
906 qRegisterGuiVariant(); |
899 #ifndef QT_NO_STATEMACHINE |
907 #ifndef QT_NO_STATEMACHINE |
924 #endif //Q_WS_WINCE |
932 #endif //Q_WS_WINCE |
925 |
933 |
926 // Set up which span functions should be used in raster engine... |
934 // Set up which span functions should be used in raster engine... |
927 qInitDrawhelperAsm(); |
935 qInitDrawhelperAsm(); |
928 |
936 |
929 #if !defined(Q_WS_X11) && !defined(Q_WS_QWS) |
937 #if defined(Q_CC_NOKIAX86) |
930 // initialize the graphics system - on X11 this is initialized inside |
938 // initialize the graphics system - For symbian emulator, we create graphics system here, since |
931 // qt_init() in qapplication_x11.cpp because of several reasons. |
939 // there is some unknown error launching the emulator with openVg when |
932 // On QWS, the graphics system is set by the QScreen plugin. |
940 // graphics system is created before style instance. |
933 graphics_system = QGraphicsSystemFactory::create(graphics_system_name); |
941 graphics_system = QGraphicsSystemFactory::create(graphics_system_name); |
934 #endif |
942 #endif |
|
943 |
935 #ifndef QT_NO_WHEELEVENT |
944 #ifndef QT_NO_WHEELEVENT |
936 QApplicationPrivate::wheel_scroll_lines = 3; |
945 QApplicationPrivate::wheel_scroll_lines = 3; |
937 #endif |
946 #endif |
938 |
947 |
939 if (qt_is_gui_used) |
948 if (qt_is_gui_used) |