qt5base-lts/tests/auto/gui.pro
Eskil Abrahamsen Blomfeldt 46c128bbf5 Fix text color in some cases of QML and QStaticText
This reverts 518c2a58ed6fdfd7449cb4476aa8ea0d32ad16e3 which caused a
regression.

When writing systems are mixed and an underline is set on the font,
QPainter will set a pen with the current color and a new width on
itself before drawing the decoration. This would cause the recorder
in QStaticText to mark the pen as dirty, saving the current pen
color in all subsequent text items. The effect was e.g. that in QML
the cached color would override the current one, making it impossible
to change the color on the text without forcing a relayout somehow.

The right fix is to only mark the pen as dirty when its color actually
changes.

Task-number: QTBUG-20159
Change-Id: Ia819b67cccc9eaedd23fde655eab58cd892646f8
Reviewed-by: Jiang Jiang
Reviewed-on: http://codereview.qt.nokia.com/870
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
2011-06-30 15:03:28 +02:00

235 lines
4.7 KiB
Prolog

# The tests in this .pro file _MUST_ use QtCore, QtNetwork and QtGui only
# (i.e. QT=core gui network).
# The test system is allowed to run these tests before the rest of Qt has
# been compiled.
#
TEMPLATE=subdirs
SUBDIRS=\
gestures \
languagechange \
modeltest \
qabstractbutton \
qabstractitemmodel \
qabstractitemview \
qabstractprintdialog \
qabstractproxymodel \
qabstractscrollarea \
qabstractslider \
qabstractspinbox \
qabstracttextdocumentlayout \
qaction \
qactiongroup \
qapplication \
qboxlayout \
qbrush \
qbuttongroup \
qcalendarwidget \
qcheckbox \
qclipboard \
qcolor \
qcolordialog \
qcolumnview \
qcommandlinkbutton \
qcompleter \
qcomplextext \
qdatawidgetmapper \
qdatetimeedit \
qdesktopservices \
qdesktopwidget \
qdial \
qdialog \
qdialogbuttonbox \
qdirmodel \
qdockwidget \
qdoublespinbox \
qdoublevalidator \
qdrag \
qerrormessage \
qfile \
qfiledialog \
qfiledialog2 \
qfileiconprovider \
qfileopenevent \
qfilesystemmodel \
qfocusframe \
qfont \
qfontcombobox \
qfontdatabase \
qfontdialog \
qfontmetrics \
qformlayout \
qglyphrun \
qgraphicsanchorlayout \
qgraphicsanchorlayout1 \
qgraphicseffect \
qgraphicseffectsource \
qgraphicsgridlayout \
qgraphicsitem \
qgraphicsitemanimation \
qgraphicslayout \
qgraphicslayoutitem \
qgraphicslinearlayout \
qgraphicsobject \
qgraphicspixmapitem \
qgraphicspolygonitem \
qgraphicsproxywidget \
qgraphicsscene \
qgraphicssceneindex \
qgraphicstransform \
qgraphicsview \
qgraphicswidget \
qgridlayout \
qgroupbox \
qguivariant \
qheaderview \
qicoimageformat \
qicon \
qidentityproxymodel \
qimageiohandler \
qimagereader \
qimagewriter \
qinputcontext \
qinputdialog \
qintvalidator \
qitemdelegate \
qitemeditorfactory \
qitemselectionmodel \
qitemview \
qkeysequence \
qlabel \
qlcdnumber \
qlineedit \
qlist \
qlistview \
qlistwidget \
qlocale \
#qlocalsocket \ # FIXME: uses qtscript (QTBUG-19242)
qmacstyle \
qmainwindow \
qmatrixnxn \
qmdisubwindow \
qmessagebox \
qmetaobject \
qmimedata \
qmouseevent_modal \
qmovie \
qvolatileimage \
qnetworkaccessmanager_and_qprogressdialog \
qpaintengine \
qpainterpath \
qpainterpathstroker \
qpalette \
qparallelanimationgroup \
qpathclipper \
qpauseanimation \
qpen \
qpicture \
qpixmapcache \
qpixmapfilter \
qplaintextedit \
qpointer \
qpolygon \
qprinterinfo \
qprocess \
qprogressbar \
qprogressdialog \
qpropertyanimation \
qpushbutton \
qquaternion \
qradiobutton \
qrawfont \
qregexpvalidator \
qregion \
qscrollarea \
qscrollbar \
qscroller \
qsharedpointer_and_qwidget \
qshortcut \
qsidebar \
qsignalmapper \
qsizegrip \
qslider \
qsortfilterproxymodel \
qsound \
qspinbox \
qstackedlayout \
qstackedwidget \
qstandarditem \
qstandarditemmodel \
qstatemachine \
qstatictext \
qstatusbar \
qstringlistmodel \
qstyle \
qstyleoption \
qstylesheetstyle \
qsyntaxhighlighter \
qsystemtrayicon \
qtabbar \
qtableview \
qtablewidget \
qtcpsocket \
qtessellator \
qtextblock \
qtextcodec \
qtextcursor \
qtextdocumentfragment \
qtextdocumentlayout \
qtextformat \
qtextlayout \
qtextlist \
qtextobject \
qtextpiecetable \
qtextscriptengine \
qtextstream \
qtexttable \
qtipc \
qtoolbar \
qtoolbox \
qtooltip \
qtouchevent \
qtransform \
qtransformedscreen \
qtranslator \
qtreeview \
qtreewidget \
qtreewidgetitemiterator \
qundogroup \
qundostack \
qvectornd \
qwidget_window \
qwidgetaction \
qwindowsurface \
qwizard \
qwmatrix \
qwsembedwidget \
qwsinputmethod \
qwswindowsystem \
qx11info \
win32:SUBDIRS -= qtextpiecetable
!contains(QT_CONFIG, private_tests): SUBDIRS -= \
qcolumnview \
qgraphicsanchorlayout \
qgraphicsanchorlayout1 \
qgraphicsitem \
qgraphicsscene \
qgraphicssceneindex \
qlistwidget \
qmainwindow \
qnetworkreply \
qpathclipper \
qpixmapcache \
qsidebar \
qstylesheetstyle \
qtextlayout \
qtextpiecetable \
qtipc \
qtoolbar \
qstatictext \
symbian:SUBDIRS -= \
qsystemtrayicon \