From 6e66f94c0698f7b0b21ed131bebbceb4d92c86f7 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Tue, 21 Jan 2014 09:26:59 +0100 Subject: [PATCH] adjusted title bar position --- src/domain/UBGraphicsItemDelegate.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index 82e4117e..2eb5bf02 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -769,7 +769,11 @@ void UBGraphicsItemDelegate::updateButtons(bool showUpdated) int i = 1, j = 0, k = 0, l = 0; int frameButtonHeight = mDeleteButton->boundingRect().size().height(); 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()) { DelegateButton* button = mButtons[i + j + k + l];