mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 14:25:58 +01:00
Use better variable names in SetDivider
This commit is contained in:
parent
df5d08a718
commit
91810d8efd
@ -65,7 +65,7 @@ public:
|
|||||||
|
|
||||||
virtual void SetAlignment(alignment label);
|
virtual void SetAlignment(alignment label);
|
||||||
alignment Alignment() const;
|
alignment Alignment() const;
|
||||||
virtual void SetDivider(float dividing_line);
|
virtual void SetDivider(float position);
|
||||||
float Divider() const;
|
float Divider() const;
|
||||||
|
|
||||||
void ShowPopUpMarker();
|
void ShowPopUpMarker();
|
||||||
|
@ -626,16 +626,16 @@ BMenuField::Alignment() const
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BMenuField::SetDivider(float divider)
|
BMenuField::SetDivider(float position)
|
||||||
{
|
{
|
||||||
divider = floorf(divider + 0.5);
|
position = floorf(position + 0.5);
|
||||||
|
|
||||||
float dx = fDivider - divider;
|
float delta = fDivider - position;
|
||||||
|
|
||||||
if (dx == 0.0f)
|
if (delta == 0.0f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fDivider = divider;
|
fDivider = position;
|
||||||
|
|
||||||
if ((Flags() & B_SUPPORTS_LAYOUT) != 0) {
|
if ((Flags() & B_SUPPORTS_LAYOUT) != 0) {
|
||||||
// We should never get here, since layout support means, we also
|
// We should never get here, since layout support means, we also
|
||||||
|
Loading…
x
Reference in New Issue
Block a user