summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextlayout/tst_qtextlayout.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2009-10-07 14:15:30 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2009-10-07 14:16:37 (GMT)
commit5ecccd6a67333066978055604a50973d8fb12748 (patch)
treeb82db8b65ac9f29d98ca80c4ac4dbf4517fcbcd6 /tests/auto/qtextlayout/tst_qtextlayout.cpp
parent4c4875919de4a46cc40df93f64fe04e3fdad81fb (diff)
downloadQt-5ecccd6a67333066978055604a50973d8fb12748.zip
Qt-5ecccd6a67333066978055604a50973d8fb12748.tar.gz
Qt-5ecccd6a67333066978055604a50973d8fb12748.tar.bz2
Fix: Lazy instantiation of a static QAction
We should not create a QAction instance at program startup, that is before QApplication was initialized. One reason not to do that is that internal fonts are prematurely initialized without QApplication::qt_is_gui_used set to true, which leads to wrong font Dpis in qt_defaultDpiX(). This issue was detected due to the failure in tst_QTextLayout, cases: testDefaultTabs, testTabs, testMultilineTab, testRightTab, testTabsInAlignedParag, testCenteredTab, testDelimiterTab, testMultiTab and tabsForRtl. Fix: create a Q_GLOBAL_STATIC_WITH_ARGS for that QAction instance. Reviewed-by: Liang QI
Diffstat (limited to 'tests/auto/qtextlayout/tst_qtextlayout.cpp')
0 files changed, 0 insertions, 0 deletions