Skip to content

Commit

Permalink
Convert more actions to defines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Mar 29, 2011
1 parent a916207 commit 3bf886c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -3651,7 +3651,7 @@ bool PlaybackBox::keyPressEvent(QKeyEvent *event)
QString action = actions[i];
handled = true;

if (action == "1" || action == "HELP")
if (action == ACTION_1 || action == "HELP")
showIconHelp();
else if (action == "MENU")
{
Expand Down Expand Up @@ -3691,12 +3691,12 @@ bool PlaybackBox::keyPressEvent(QKeyEvent *event)
m_playList.clear();
UpdateUILists();
}
else if (action == "TOGGLERECORD")
else if (action == ACTION_TOGGLERECORD)
{
m_viewMask = m_viewMaskToggle(m_viewMask, VIEW_TITLES);
UpdateUILists();
}
else if (action == "PAGERIGHT")
else if (action == ACTION_PAGERIGHT)
{
QString nextGroup;
m_recGroupsLock.lock();
Expand All @@ -3711,7 +3711,7 @@ bool PlaybackBox::keyPressEvent(QKeyEvent *event)
if (!nextGroup.isEmpty())
displayRecGroup(nextGroup);
}
else if (action == "PAGELEFT")
else if (action == ACTION_PAGELEFT)
{
QString nextGroup;
m_recGroupsLock.lock();
Expand All @@ -3736,15 +3736,15 @@ bool PlaybackBox::keyPressEvent(QKeyEvent *event)
{
if (action == "DELETE")
deleteSelected(m_recordingList->GetItemCurrent());
else if (action == "PLAYBACK")
else if (action == ACTION_PLAYBACK)
PlayFromBookmark();
else if (action == "DETAILS" || action == "INFO")
details();
else if (action == "CUSTOMEDIT")
customEdit();
else if (action == "UPCOMING")
upcoming();
else if (action == "VIEWSCHEDULED")
else if (action == ACTION_VIEWSCHEDULED)
upcomingScheduled();
else
handled = false;
Expand Down

0 comments on commit 3bf886c

Please sign in to comment.