From 0d12a17535ae50a6b2e2aef132077d4c8ff75567 Mon Sep 17 00:00:00 2001 From: Anatoly Mihalchenko Date: Thu, 6 Oct 2011 17:54:29 +0300 Subject: [PATCH] SANKORE-267 implement forced min width == 50 and min height == 50 for any widget application --- src/domain/UBGraphicsDelegateFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/UBGraphicsDelegateFrame.cpp b/src/domain/UBGraphicsDelegateFrame.cpp index 071105ae..a63cabe5 100644 --- a/src/domain/UBGraphicsDelegateFrame.cpp +++ b/src/domain/UBGraphicsDelegateFrame.cpp @@ -299,7 +299,7 @@ void UBGraphicsDelegateFrame::mouseMoveEvent(QGraphicsSceneMouseEvent *event) QSizeF newSize = resizableItem->size() + incVector; - if (newSize.width() < 0 || newSize.height() < 0) + if (newSize.width() < 50 /*0*/ || newSize.height() < /*0*/ 50) return; resizableItem->resize(newSize);