Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename a couple of methods in MythUIButtonList to avoid confusion wit…
…h other similarly named methods elsewhere.
  • Loading branch information
stuartm committed Jun 16, 2012
1 parent a20b125 commit 6cfda0c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythversion.h
Expand Up @@ -12,7 +12,7 @@
/// Update this whenever the plug-in API changes.
/// Including changes in the libmythbase, libmyth, libmythtv, libmythav* and
/// libmythui class methods used by plug-ins.
#define MYTH_BINARY_VERSION "0.26.20120614-1"
#define MYTH_BINARY_VERSION "0.26.20120616-1"

/** \brief Increment this whenever the MythTV network protocol changes.
*
Expand Down
10 changes: 5 additions & 5 deletions mythtv/libs/libmythui/mythuibuttonlist.cpp
Expand Up @@ -1250,7 +1250,7 @@ bool MythUIButtonList::DistributeButtons(void)
return true;
}

void MythUIButtonList::SetPosition(void)
void MythUIButtonList::CalculateButtonPositions(void)
{
if (m_ButtonList.size() == 0)
return;
Expand Down Expand Up @@ -1380,7 +1380,7 @@ void MythUIButtonList::SanitizePosition(void)
m_selPosition = (m_wrapStyle > WrapNone) ? 0 : m_itemList.size() - 1;
}

void MythUIButtonList::SetPositionArrowStates()
void MythUIButtonList::CalculateArrowStates()
{
if (!m_initialized)
Init();
Expand All @@ -1398,7 +1398,7 @@ void MythUIButtonList::SetPositionArrowStates()
m_ButtonToItem.clear();

if (m_arrange == ArrangeFixed)
SetPosition();
CalculateButtonPositions();
else
DistributeButtons();

Expand Down Expand Up @@ -1621,7 +1621,7 @@ uint MythUIButtonList::GetVisibleCount()
{
if (m_needsUpdate)
{
SetPositionArrowStates();
CalculateArrowStates();
SetScrollBarPosition();
}

Expand Down Expand Up @@ -2720,7 +2720,7 @@ void MythUIButtonList::DrawSelf(MythPainter *, int, int, int, QRect)
{
if (m_needsUpdate)
{
SetPositionArrowStates();
CalculateArrowStates();
SetScrollBarPosition();
}
}
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/mythuibuttonlist.h
Expand Up @@ -232,8 +232,8 @@ class MUI_PUBLIC MythUIButtonList : public MythUIType
int & top_height, int & bottom_height,
bool & wrapped);
bool DistributeButtons(void);
void SetPosition(void);
void SetPositionArrowStates(void);
void CalculateButtonPositions(void);
void CalculateArrowStates(void);
void SetScrollBarPosition(void);
void ItemVisible(MythUIButtonListItem *item);

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuispinbox.cpp
Expand Up @@ -80,7 +80,7 @@ void MythUISpinBox::SetRange(int low, int high, int step, uint pageMultiple)
value = value + step;
}

SetPositionArrowStates();
CalculateArrowStates();
}

/**
Expand Down

0 comments on commit 6cfda0c

Please sign in to comment.