Remove usused LLButton::mBorderEnabled
parent
4ae1de1f8a
commit
2bae8dfb81
|
|
@ -264,8 +264,6 @@ public:
|
|||
|
||||
void setDropShadowedText(bool b) { mDropShadowedText = b; }
|
||||
|
||||
void setBorderEnabled(bool b) { mBorderEnabled = b; }
|
||||
|
||||
void setHoverGlowStrength(F32 strength) { mHoverGlowStrength = strength; }
|
||||
|
||||
void setImageUnselected(LLPointer<LLUIImage> image);
|
||||
|
|
@ -360,7 +358,6 @@ protected:
|
|||
bool mAutoResize;
|
||||
bool mUseEllipses;
|
||||
bool mUseFontColor;
|
||||
bool mBorderEnabled;
|
||||
bool mFlashing;
|
||||
|
||||
LLFontGL::HAlign mHAlign;
|
||||
|
|
|
|||
|
|
@ -2042,21 +2042,6 @@ void LLFloater::draw()
|
|||
|
||||
LLPanel::updateDefaultBtn();
|
||||
|
||||
if( getDefaultButton() )
|
||||
{
|
||||
if (hasFocus() && getDefaultButton()->getEnabled())
|
||||
{
|
||||
LLFocusableElement* focus_ctrl = gFocusMgr.getKeyboardFocus();
|
||||
// is this button a direct descendent and not a nested widget (e.g. checkbox)?
|
||||
bool focus_is_child_button = dynamic_cast<LLButton*>(focus_ctrl) != NULL && dynamic_cast<LLButton*>(focus_ctrl)->getParent() == this;
|
||||
// only enable default button when current focus is not a button
|
||||
getDefaultButton()->setBorderEnabled(!focus_is_child_button);
|
||||
}
|
||||
else
|
||||
{
|
||||
getDefaultButton()->setBorderEnabled(false);
|
||||
}
|
||||
}
|
||||
if (isMinimized())
|
||||
{
|
||||
for (S32 i = 0; i < BUTTON_COUNT; i++)
|
||||
|
|
|
|||
|
|
@ -242,20 +242,6 @@ void LLPanel::draw()
|
|||
|
||||
void LLPanel::updateDefaultBtn()
|
||||
{
|
||||
if( mDefaultBtn)
|
||||
{
|
||||
if (gFocusMgr.childHasKeyboardFocus( this ) && mDefaultBtn->getEnabled())
|
||||
{
|
||||
LLButton* buttonp = dynamic_cast<LLButton*>(gFocusMgr.getKeyboardFocus());
|
||||
bool focus_is_child_button = buttonp && buttonp->getCommitOnReturn();
|
||||
// only enable default button when current focus is not a return-capturing button
|
||||
mDefaultBtn->setBorderEnabled(!focus_is_child_button);
|
||||
}
|
||||
else
|
||||
{
|
||||
mDefaultBtn->setBorderEnabled(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanel::refresh()
|
||||
|
|
@ -266,15 +252,7 @@ void LLPanel::refresh()
|
|||
|
||||
void LLPanel::setDefaultBtn(LLButton* btn)
|
||||
{
|
||||
if (mDefaultBtn && mDefaultBtn->getEnabled())
|
||||
{
|
||||
mDefaultBtn->setBorderEnabled(false);
|
||||
}
|
||||
mDefaultBtn = btn;
|
||||
if (mDefaultBtn)
|
||||
{
|
||||
mDefaultBtn->setBorderEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanel::setDefaultBtn(std::string_view id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue