Update dictionarybar.cc

This commit is contained in:
Konstantin 2024-09-09 17:51:51 +00:00 committed by GitHub
parent e8661877b4
commit 561cb3300c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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" );