Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Mar 8, 2012
1 parent b64248c commit 214f24f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythdialogbox.cpp
Expand Up @@ -358,7 +358,7 @@ bool MythDialogBox::doEscape(const QString &action)
{
SendEvent(-1, m_exittext, m_exitdata);
if (m_exitdata == 0 && m_exittext.isEmpty())
Close();
Close();
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/myththemedmenu.cpp
Expand Up @@ -201,7 +201,7 @@ bool MythThemedMenu::doEscape(const QString &action)
{
bool callbacks = m_state->m_callback;
bool lastScreen =
(GetMythMainWindow()->GetMainStack()->TotalScreens() == 1);
(GetMythMainWindow()->GetMainStack()->TotalScreens() == 1);
QString menuaction = "UPMENU";
QString selExit = "EXITING_APP_PROMPT";
if (action == "EXIT")
Expand All @@ -228,7 +228,7 @@ bool MythThemedMenu::doEscape(const QString &action)
m_state->m_callback(m_state->m_callbackdata, selExit);
QCoreApplication::exit();
}
return true;
return true;
}

if (((action != "ESCAPE") ||
Expand Down
14 changes: 7 additions & 7 deletions mythtv/libs/libmythui/mythuibuttonlist.cpp
Expand Up @@ -2312,37 +2312,37 @@ uint MythUIButtonList::ItemHeight(void)
bool MythUIButtonList::doUp(const QString &action)
{
if ((m_layout == LayoutVertical) || (m_layout == LayoutGrid))
return MoveUp(MoveRow);
return MoveUp(MoveRow);

return false;
}

bool MythUIButtonList::doDown(const QString &action)
{
if ((m_layout == LayoutVertical) || (m_layout == LayoutGrid))
return MoveDown(MoveRow);
return MoveDown(MoveRow);

return false;
}

bool MythUIButtonList::doRight(const QString &action)
{
if (m_layout == LayoutHorizontal)
return MoveDown(MoveItem);
return MoveDown(MoveItem);

if (m_layout == LayoutGrid)
return MoveDown((m_scrollStyle == ScrollFree) ? MoveColumn : MoveItem);
return MoveDown((m_scrollStyle == ScrollFree) ? MoveColumn : MoveItem);

return false;
}

bool MythUIButtonList::doLeft(const QString &action)
{
if (m_layout == LayoutHorizontal)
return MoveUp(MoveItem);
return MoveUp(MoveItem);

if (m_layout == LayoutGrid)
return MoveUp((m_scrollStyle == ScrollFree) ? MoveColumn : MoveItem);
return MoveUp((m_scrollStyle == ScrollFree) ? MoveColumn : MoveItem);

return false;
}
Expand Down Expand Up @@ -2382,7 +2382,7 @@ bool MythUIButtonList::doSelect(const QString &action)
MythUIButtonListItem *item = GetItemCurrent();

if (item)
emit itemClicked(item);
emit itemClicked(item);

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuibuttonlist.h
Expand Up @@ -236,7 +236,7 @@ class MUI_PUBLIC MythUIButtonList : public MythUIType
int & first_item, int & last_item,
int & selected_column, int & selected_row,
int & skip_cols, int ** col_widths,
QList<int> & row_heights,
QList<int> & row_heights,
int & top_height, int & bottom_height,
bool & wrapped);
bool DistributeButtons(void);
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuiwebbrowser.cpp
Expand Up @@ -1523,7 +1523,7 @@ bool MythUIWebBrowser::doLeft(const QString &action)

if (pos > 0)
{
Scroll(-m_browserArea.width() / 10, 0);
Scroll(-m_browserArea.width() / 10, 0);
return true;
}

Expand Down
8 changes: 4 additions & 4 deletions mythtv/libs/libmythui/mythvirtualkeyboard.cpp
Expand Up @@ -370,28 +370,28 @@ void MythUIVirtualKeyboard::updateKeys(bool connectSignals)
bool MythUIVirtualKeyboard::doUp(const QString &action)
{
if (m_actionKeyFound)
SetFocusWidget(GetChild(m_actionKey.up));
SetFocusWidget(GetChild(m_actionKey.up));
return true;
}

bool MythUIVirtualKeyboard::doDown(const QString &action)
{
if (m_actionKeyFound)
SetFocusWidget(GetChild(m_actionKey.down));
SetFocusWidget(GetChild(m_actionKey.down));
return true;
}

bool MythUIVirtualKeyboard::doLeft(const QString &action)
{
if (m_actionKeyFound)
SetFocusWidget(GetChild(m_actionKey.left));
SetFocusWidget(GetChild(m_actionKey.left));
return true;
}

bool MythUIVirtualKeyboard::doRight(const QString &action)
{
if (m_actionKeyFound)
SetFocusWidget(GetChild(m_actionKey.right));
SetFocusWidget(GetChild(m_actionKey.right));
return true;
}

Expand Down

0 comments on commit 214f24f

Please sign in to comment.