Compare commits

...

2 commits

Author SHA1 Message Date
autofix-ci[bot] 46bfca2a44
[autofix.ci] apply automated fixes 2024-09-09 17:53:09 +00:00
Konstantin 561cb3300c
Update dictionarybar.cc 2024-09-09 17:51:51 +00:00

View file

@ -20,8 +20,11 @@ DictionaryBar::DictionaryBar( QWidget * parent,
maxDictionaryRefsInContextMenu( maxDictionaryRefsInContextMenu_ )
{
auto iconHeight = this->size().height(); // At the time of initialization, this equals `QStyle::PM_ToolBarIconSize`
normalIconSize = { iconHeight, iconHeight };
auto iconWidth = this->size().width();
auto iconHeight = this->size().height();
normalIconSize = { std::max( iconWidth, iconHeight ), std::max( iconWidth, iconHeight ) };
setObjectName( "dictionaryBar" );