Commit 8c95c00f authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Fix QWidget::getContentsMargins() deprecation warning by switching to...

Fix QWidget::getContentsMargins() deprecation warning by switching to contentsMargins().top()/.bottom()
parent 7556af0c
...@@ -585,9 +585,8 @@ namespace Breeze ...@@ -585,9 +585,8 @@ namespace Breeze
if (widget->inherits("QBalloonTip")) { if (widget->inherits("QBalloonTip")) {
// Balloon tip needs special margins to deal with the arrow. // Balloon tip needs special margins to deal with the arrow.
int top = 0; int top = widget->contentsMargins().top();
int bottom = 0; int bottom = widget->contentsMargins().bottom();
widget->getContentsMargins(nullptr, &top, nullptr, &bottom);
// Need to decrement default size further due to extra hard coded round corner. // Need to decrement default size further due to extra hard coded round corner.
#if BREEZE_USE_KDE4 #if BREEZE_USE_KDE4
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment