From 688602704d5c5226491b0d0ab7f596f9568966d6 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 6 May 2021 21:13:29 +0200 Subject: Support CSS text-decoration-color in underlines, overlines, strikethrough Also add a feature to the textedit example to set this value. [ChangeLog][QtGui][CSS] The CSS text-decoration-color attribute is now supported in rich text spans with underlines, overlines and strikethrough. Fixes: QTBUG-82114 Task-number: QTBUG-39617 Change-Id: I0065cb5431833da55b0f503ce7ff2b83b74b718a Reviewed-by: Allan Sandfeld Jensen --- examples/widgets/richtext/textedit/textedit.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/widgets/richtext/textedit/textedit.h') diff --git a/examples/widgets/richtext/textedit/textedit.h b/examples/widgets/richtext/textedit/textedit.h index 07a307f83d..debc401150 100644 --- a/examples/widgets/richtext/textedit/textedit.h +++ b/examples/widgets/richtext/textedit/textedit.h @@ -95,6 +95,7 @@ private slots: void textSize(const QString &p); void textStyle(int styleIndex); void textColor(); + void underlineColor(); void textAlign(QAction *a); void setChecked(bool checked); void indent(); @@ -125,6 +126,7 @@ private: QAction *actionTextUnderline; QAction *actionTextItalic; QAction *actionTextColor; + QAction *actionUnderlineColor; QAction *actionAlignLeft; QAction *actionAlignCenter; QAction *actionAlignRight; -- cgit v1.2.3