Skip to content

Commit

Permalink
Rename getOSSppecificModifierKey
Browse files Browse the repository at this point in the history
Rename `getOSSppecificModifierKey` to `getOSSppecificModifierKeyString`
to make it more clear that the function returns a string and not some Qt
enum/class, etc.
  • Loading branch information
michaelgregorius authored and tresf committed Feb 9, 2025
1 parent d7dee71 commit baeed0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/OperatingSystemHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ constexpr const char* UI_ALT_KEY =
"Alt";
#endif

constexpr const char* getOSSppecificModifierKey()
constexpr const char* getOSSppecificModifierKeyString()
{
#ifdef LMMS_BUILD_APPLE
return UI_ALT_KEY;
Expand Down
2 changes: 1 addition & 1 deletion src/core/AutomationClip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ QString AutomationClip::name() const
{
return m_objects.front()->fullDisplayName();
}
return tr( "Drag a control while pressing <%1>" ).arg(getOSSppecificModifierKey());
return tr( "Drag a control while pressing <%1>" ).arg(getOSSppecificModifierKeyString());
}


Expand Down
2 changes: 1 addition & 1 deletion src/gui/clips/ClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ void ClipView::mousePressEvent( QMouseEvent * me )
QString hint = m_action == Action::Move || m_action == Action::MoveSelection
? tr( "Press <%1> and drag to make a copy." )
: tr( "Press <%1> for free resizing." );
m_hint = TextFloat::displayMessage( tr( "Hint" ), getOSSppecificModifierKey(),
m_hint = TextFloat::displayMessage( tr( "Hint" ), getOSSppecificModifierKeyString(),
embed::getIconPixmap( "hint" ), 0 );
}
}
Expand Down

0 comments on commit baeed0c

Please sign in to comment.