Commit 4fcdb821 authored by Huon Imberger's avatar Huon Imberger
Browse files

Rename Transparent background config options

Summary:
This makes the meaning of this option more clear. It also uses the
correct term "checkerboard" instead of "check board".

I have left the `RasterImageView::AlphaBackground*` terminology the same
as I believe it makes more sense as is in terms of what the code does.
For example `AlphaBackgroundNone` means we do not draw a background or
draw a transparent background.

Depends on D11630

Before:
{F5778723}

After:
{F5781170}

Test Plan: Ensure all transparent background options continue to function.

Reviewers: #gwenview, rkflx, ngraham

Reviewed By: #gwenview, rkflx

Tags: #gwenview

Differential Revision: https://phabricator.kde.org/D11824
parent 25fb575e
......@@ -68,7 +68,7 @@ ConfigDialog::ConfigDialog(QWidget* parent)
mAlphaBackgroundModeGroup = new InvisibleButtonGroup(widget);
mAlphaBackgroundModeGroup->setObjectName(QLatin1String("kcfg_AlphaBackgroundMode"));
mAlphaBackgroundModeGroup->addButton(mImageViewConfigPage.noBackgroundRadioButton, int(AbstractImageView::AlphaBackgroundNone));
mAlphaBackgroundModeGroup->addButton(mImageViewConfigPage.surroundingRadioButton, int(AbstractImageView::AlphaBackgroundNone));
mAlphaBackgroundModeGroup->addButton(mImageViewConfigPage.checkBoardRadioButton, int(AbstractImageView::AlphaBackgroundCheckBoard));
mAlphaBackgroundModeGroup->addButton(mImageViewConfigPage.solidColorRadioButton, int(AbstractImageView::AlphaBackgroundSolid));
......
......@@ -14,13 +14,13 @@
<item row="0" column="0">
<widget class="QLabel" name="label_1">
<property name="text">
<string>Transparent background:</string>
<string>Show transparency with:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>checkBoardRadioButton</cstring>
<cstring>surroundingRadioButton</cstring>
</property>
</widget>
</item>
......@@ -33,9 +33,9 @@
<number>0</number>
</property>
<item>
<widget class="QRadioButton" name="noBackgroundRadioButton">
<widget class="QRadioButton" name="surroundingRadioButton">
<property name="text">
<string>None</string>
<string>Surrounding background</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -68,7 +68,7 @@
<item>
<widget class="QRadioButton" name="checkBoardRadioButton">
<property name="text">
<string>&amp;Check board</string>
<string>&amp;Checkerboard background</string>
</property>
<property name="checked">
<bool>false</bool>
......@@ -101,7 +101,7 @@
<item>
<widget class="QRadioButton" name="solidColorRadioButton">
<property name="text">
<string>&amp;Solid color:</string>
<string>&amp;Solid color background:</string>
</property>
</widget>
</item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment