Changeset 95526 in webkit


Ignore:
Timestamp:
Sep 20, 2011 4:36:15 AM (13 years ago)
Author:
vestbo@webkit.org
Message:

[Qt] Don't use QFont before initializing QApplication

Could potentially result in crash.

Reviewed by Simon Hausmann.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r95501 r95526  
     12011-09-20  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
     2
     3        [Qt] Don't use QFont before initializing QApplication
     4
     5        Could potentially result in crash.
     6
     7        Reviewed by Simon Hausmann.
     8
     9        * DumpRenderTree/qt/main.cpp:
     10        (main):
     11
    1122011-09-19  Adam Barth  <abarth@webkit.org>
    213
  • trunk/Tools/DumpRenderTree/qt/main.cpp

    r82844 r95526  
    145145    QApplication::setStyle(new QWindowsStyle);
    146146
     147    QApplication app(argc, argv);
     148
    147149    QFont f("Sans Serif");
    148150    f.setPointSize(9);
     
    151153    QApplication::setFont(f);
    152154
    153     QApplication app(argc, argv);
    154155#ifdef Q_WS_X11
    155156    QX11Info::setAppDpiY(0, 96);
Note: See TracChangeset for help on using the changeset viewer.