Small fix-up

This commit is contained in:
Markus Gans 2020-10-12 00:01:11 +02:00
parent 493b1231fd
commit 8d189e9ec4
3 changed files with 3 additions and 3 deletions

View File

@ -836,7 +836,7 @@ bool FApplication::processAccelerator (const FWidget* const& widget) const
{ {
bool accpt{false}; bool accpt{false};
if ( widget || widget->getAcceleratorList().empty() ) if ( ! widget || widget->getAcceleratorList().empty() )
return accpt; return accpt;
for (auto&& item : widget->getAcceleratorList()) for (auto&& item : widget->getAcceleratorList())

View File

@ -471,7 +471,7 @@ bool FButtonGroup::directFocusCheckedRadioButton (FToggleButton* item) const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FButtonGroup::directFocusRadioButton() bool FButtonGroup::directFocusRadioButton() const
{ {
if ( ! hasCheckedButton() || buttonlist.empty() ) if ( ! hasCheckedButton() || buttonlist.empty() )
return false; return false;

View File

@ -128,7 +128,7 @@ class FButtonGroup : public FScrollView
void init(); void init();
void drawText (const FString&, std::size_t); void drawText (const FString&, std::size_t);
bool directFocusCheckedRadioButton (FToggleButton*) const; bool directFocusCheckedRadioButton (FToggleButton*) const;
bool directFocusRadioButton(); bool directFocusRadioButton() const;
void directFocus(); void directFocus();
void focusCheckedRadioButton (FToggleButton*, FFocusEvent*); void focusCheckedRadioButton (FToggleButton*, FFocusEvent*);
void focusInRadioButton (FFocusEvent*); void focusInRadioButton (FFocusEvent*);