Commit 0ece311c authored by Boudewijn Rempt's avatar Boudewijn Rempt

Less confusing names for the alpha toggles

Alpha Channel Locked -> Alpha Locked
Alpha Channel Disabled -> Inherit Alpha Channel

See http://forum.kde.org/viewtopic.php?f=139&t=109873&p=258210#p258210
parent c145dc99
......@@ -154,8 +154,8 @@ KoDocumentSectionModel::PropertyList KisPaintLayer::sectionModelProperties() con
KoDocumentSectionModel::PropertyList l = KisLayer::sectionModelProperties();
// XXX: get right icons
l << KoDocumentSectionModel::Property(i18n("Alpha Channel Locked"), koIcon("transparency-locked"), koIcon("transparency-unlocked"), alphaLocked());
l << KoDocumentSectionModel::Property(i18n("Alpha Channel Disabled"), koIcon("transparency-disabled"), koIcon("transparency-enabled"), alphaChannelDisabled());
l << KoDocumentSectionModel::Property(i18n("Alpha Locked"), koIcon("transparency-locked"), koIcon("transparency-unlocked"), alphaLocked());
l << KoDocumentSectionModel::Property(i18n("Inherit Alpha"), koIcon("transparency-disabled"), koIcon("transparency-enabled"), alphaChannelDisabled());
return l;
}
......@@ -163,10 +163,10 @@ KoDocumentSectionModel::PropertyList KisPaintLayer::sectionModelProperties() con
void KisPaintLayer::setSectionModelProperties(const KoDocumentSectionModel::PropertyList &properties)
{
foreach (const KoDocumentSectionModel::Property &property, properties) {
if (property.name == i18n("Alpha Channel Locked")) {
if (property.name == i18n("Alpha Locked")) {
setAlphaLocked(property.state.toBool());
}
else if (property.name == i18n("Alpha Channel Disabled")) {
else if (property.name == i18n("Inherit Alpha")) {
disableAlphaChannel(property.state.toBool());
}
}
......
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