-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Effect & effect parameter short names #1064
Changes from 2 commits
18ebc27
13c5398
199ed80
35bf933
a5a2fdc
4c315eb
2255a2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,11 @@ void WEffect::effectUpdated() { | |
EffectPointer pEffect = m_pEffectSlot->getEffect(); | ||
if (pEffect) { | ||
const EffectManifest& manifest = pEffect->getManifest(); | ||
name = manifest.name(); | ||
if (! manifest.shortName().isEmpty()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please drop the space after ! (and below) |
||
name = manifest.shortName(); | ||
} else { | ||
name = manifest.name(); | ||
} | ||
description = manifest.description(); | ||
} | ||
} else { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,11 @@ void WEffectParameterBase::setEffectParameterSlot( | |
|
||
void WEffectParameterBase::parameterUpdated() { | ||
if (m_pEffectParameterSlot) { | ||
setText(m_pEffectParameterSlot->name()); | ||
if (! m_pEffectParameterSlot->shortName().isEmpty()) { | ||
setText(m_pEffectParameterSlot->shortName()); | ||
} else { | ||
setText(m_pEffectParameterSlot->name()); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it'd be nice to setBaseTooltip as something like |
||
setBaseTooltip(m_pEffectParameterSlot->description()); | ||
} else { | ||
setText(tr("None")); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of "BW"?