diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-09-10 14:18:37 +0200 |
---|---|---|
committer | David Schulz <david.schulz@theqtcompany.com> | 2015-09-10 13:40:04 +0000 |
commit | 331e9d887825515567cf52e518b76cfcc9f49acd (patch) | |
tree | 650b02ed7045d0027604ec34cbde5dad6e8f2a03 /src/plugins/texteditor/colorschemeedit.ui | |
parent | 0d20d5618387a57bcbc667e9dd792bc4bd50bc58 (diff) |
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 <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/colorschemeedit.ui')
-rw-r--r-- | src/plugins/texteditor/colorschemeedit.ui | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/src/plugins/texteditor/colorschemeedit.ui b/src/plugins/texteditor/colorschemeedit.ui index 12e34f937c..cd6e12d920 100644 --- a/src/plugins/texteditor/colorschemeedit.ui +++ b/src/plugins/texteditor/colorschemeedit.ui @@ -11,7 +11,7 @@ </rect> </property> <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0" rowspan="4"> + <item row="0" column="0" rowspan="6"> <widget class="QListView" name="itemList"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> @@ -133,7 +133,56 @@ </property> </widget> </item> + <item row="3" column="1"> + <widget class="QLabel" name="underlineLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Underline:</string> + </property> + <property name="buddy"> + <cstring>backgroundToolButton</cstring> + </property> + </widget> + </item> <item row="3" column="2"> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <widget class="QToolButton" name="underlineColorToolButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="eraseUnderlineColorToolButton"> + <property name="toolTip"> + <string>Erase background.</string> + </property> + <property name="text"> + <string>x</string> + </property> + <property name="arrowType"> + <enum>Qt::LeftArrow</enum> + </property> + </widget> + </item> + </layout> + </item> + <item row="4" column="1" colspan="2"> + <widget class="QComboBox" name="underlineComboBox"/> + </item> + <item row="5" column="2"> <spacer> <property name="orientation"> <enum>Qt::Vertical</enum> |