[vlc-commits] Qt: addons_manager: reduce type gradient size
Francois Cartegnie
git at videolan.org
Sun May 11 14:01:11 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun May 11 14:00:14 2014 +0200| [0df71f1152932a7604e821170d85737fbffe8ad3] | committer: Francois Cartegnie
Qt: addons_manager: reduce type gradient size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0df71f1152932a7604e821170d85737fbffe8ad3
---
modules/gui/qt4/dialogs/plugins.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index 9d1b982..f495f99 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -1106,8 +1106,9 @@ void AddonItemDelegate::paint( QPainter *painter,
if ( backgroundColor.isValid() )
{
painter->save();
+ int i_corner = qMin( (int)(option.rect.width() * .05), 30 );
QLinearGradient gradient(
- QPoint( option.rect.right() - 50, option.rect.top() ),
+ QPoint( option.rect.right() - i_corner, option.rect.bottom() - i_corner ),
option.rect.bottomRight() );
gradient.setColorAt( 0, Qt::transparent );
gradient.setColorAt( 1.0, backgroundColor );
More information about the vlc-commits
mailing list