-
-
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 3 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,8 +44,13 @@ void WEffect::effectUpdated() { | |
EffectPointer pEffect = m_pEffectSlot->getEffect(); | ||
if (pEffect) { | ||
const EffectManifest& manifest = pEffect->getManifest(); | ||
name = manifest.name(); | ||
description = manifest.description(); | ||
if (!manifest.shortName().isEmpty()) { | ||
name = manifest.shortName(); | ||
description = manifest.name() + ": " + manifest.description(); | ||
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. Should the 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. you're right, the english ": " translates in french to " : " (in fact, the first space, before the colon, is a non-breaking space). 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. French typography rule is simple (this is the only simple thing in french): if the punctuation mark is made of a single part (like dot, comma, ...), there is no space before and one space after. If it is made of two parts (like colon, semicolon, ...), there is a non-breaking space before and a space after. |
||
} else { | ||
name = manifest.name(); | ||
description = manifest.description(); | ||
} | ||
} | ||
} else { | ||
name = tr("None"); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,15 @@ void WEffectParameterBase::setEffectParameterSlot( | |
|
||
void WEffectParameterBase::parameterUpdated() { | ||
if (m_pEffectParameterSlot) { | ||
setText(m_pEffectParameterSlot->name()); | ||
setBaseTooltip(m_pEffectParameterSlot->description()); | ||
if (!m_pEffectParameterSlot->shortName().isEmpty()) { | ||
setText(m_pEffectParameterSlot->shortName()); | ||
setBaseTooltip(m_pEffectParameterSlot->name() | ||
+ QString(": ") + | ||
m_pEffectParameterSlot->description()); | ||
} else { | ||
setText(m_pEffectParameterSlot->name()); | ||
setBaseTooltip(m_pEffectParameterSlot->description()); | ||
} | ||
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 |
||
} else { | ||
setText(tr("None")); | ||
setBaseTooltip(tr("No effect loaded.")); | ||
|
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"?