Commit 6e66f94c authored by Claudio Valerio's avatar Claudio Valerio

adjusted title bar position

parent 08ee463a
...@@ -769,7 +769,11 @@ void UBGraphicsItemDelegate::updateButtons(bool showUpdated) ...@@ -769,7 +769,11 @@ void UBGraphicsItemDelegate::updateButtons(bool showUpdated)
int i = 1, j = 0, k = 0, l = 0; int i = 1, j = 0, k = 0, l = 0;
int frameButtonHeight = mDeleteButton->boundingRect().size().height(); int frameButtonHeight = mDeleteButton->boundingRect().size().height();
qreal topXTitleBar = topX + (1.6 * mFrameWidth * mAntiScaleRatio); qreal topXTitleBar = topX + (1.6 * mFrameWidth * mAntiScaleRatio);
qreal topYTitleBar = topY + frameButtonHeight + 10; qreal topYTitleBar = topY + frameButtonHeight *mAntiScaleRatio;
#ifndef Q_WS_X11
topYTitleBar += 5;
#endif
while ((i + j + k + l) < mButtons.size()) { while ((i + j + k + l) < mButtons.size()) {
DelegateButton* button = mButtons[i + j + k + l]; DelegateButton* button = mButtons[i + j + k + l];
......
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