Fixed minimal height of menu item with multiline text.
This commit is contained in:
parent
e24eaa6b32
commit
aaa88be9d7
1 changed files with 3 additions and 1 deletions
|
|
@ -50,7 +50,9 @@ bool MultilineAction::isEnabled() const {
|
|||
|
||||
int MultilineAction::contentHeight() const {
|
||||
const auto skip = _labelPosition.y();
|
||||
return skip + _text->height() + skip;
|
||||
return skip
|
||||
+ std::max(_text->height(), _icon ? _icon->height() : 0)
|
||||
+ skip;
|
||||
}
|
||||
|
||||
void MultilineAction::paintEvent(QPaintEvent *e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue