From f5c97bb358b175d8f517391f284cc2f6770a81f3 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 18 Jun 2012 14:01:58 +0200 Subject: [PATCH] changed maximum left and right palette --- src/gui/UBLeftPalette.cpp | 2 +- src/gui/UBRightPalette.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/UBLeftPalette.cpp b/src/gui/UBLeftPalette.cpp index 00e0a4d9..dc93d6ec 100644 --- a/src/gui/UBLeftPalette.cpp +++ b/src/gui/UBLeftPalette.cpp @@ -45,7 +45,7 @@ UBLeftPalette::~UBLeftPalette() */ void UBLeftPalette::updateMaxWidth() { - setMaximumWidth(270); + setMaximumWidth((int)(parentWidget()->width() * 0.45)); } /** diff --git a/src/gui/UBRightPalette.cpp b/src/gui/UBRightPalette.cpp index 26923eac..f8190528 100644 --- a/src/gui/UBRightPalette.cpp +++ b/src/gui/UBRightPalette.cpp @@ -69,7 +69,7 @@ void UBRightPalette::resizeEvent(QResizeEvent *event) */ void UBRightPalette::updateMaxWidth() { - setMaximumWidth((int)((parentWidget()->width() * 2)/3)); + setMaximumWidth((int)(parentWidget()->width() * 0.45)); setMaximumHeight(parentWidget()->height()); setMinimumHeight(parentWidget()->height()); }