From 331e9d887825515567cf52e518b76cfcc9f49acd Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 10 Sep 2015 14:18:37 +0200 Subject: [PATCH] TextEdit: Add underline support to text settings Underlines colors was hard coded to the foreground color of some settings. With this patch you can set the underline color and the underline style to your taste. Change-Id: Ibc64c2d2c89bf1827a2cadaf6aee9d50d08cd1ee Reviewed-by: David Schulz --- share/qtcreator/styles/grayscale.xml | 7 +- src/plugins/texteditor/colorscheme.cpp | 113 +++++++++++++++--- src/plugins/texteditor/colorscheme.h | 21 ++-- src/plugins/texteditor/colorschemeedit.cpp | 102 +++++++++++++++- src/plugins/texteditor/colorschemeedit.h | 5 + src/plugins/texteditor/colorschemeedit.ui | 51 +++++++- src/plugins/texteditor/fontsettings.cpp | 35 ++---- src/plugins/texteditor/fontsettingspage.cpp | 22 +++- src/plugins/texteditor/fontsettingspage.h | 13 +- .../texteditor/texteditorconstants.cpp | 2 +- src/plugins/texteditor/texteditorsettings.cpp | 19 ++- 11 files changed, 318 insertions(+), 72 deletions(-) diff --git a/share/qtcreator/styles/grayscale.xml b/share/qtcreator/styles/grayscale.xml index 6bba4626866..d9e7779b462 100644 --- a/share/qtcreator/styles/grayscale.xml +++ b/share/qtcreator/styles/grayscale.xml @@ -32,6 +32,12 @@