mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Update dictionarybar.cc
This commit is contained in:
parent
e8661877b4
commit
561cb3300c
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in a new issue