From 72d486ccbb1092776eabbfdbd9e2554303b51590 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 15 Oct 2012 19:19:55 +0200 Subject: [PATCH] Drop shadow on cover in SocialWidget, and layout fix. --- src/SocialWidget.cpp | 3 ++- src/SocialWidget.ui | 40 ++++++++++++++++++++++++++++++---------- 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/src/SocialWidget.cpp b/src/SocialWidget.cpp index 294e2ec8b..306304ac9 100644 --- a/src/SocialWidget.cpp +++ b/src/SocialWidget.cpp @@ -175,7 +175,8 @@ void SocialWidget::setQuery( const Tomahawk::query_ptr& query ) { m_query = query; - ui->coverImage->setPixmap( query->cover( ui->coverImage->size() ) ); + ui->coverImage->setPixmap( TomahawkUtils::addDropShadow( + query->cover( ui->coverImage->size() ), ui->coverImage->size() ) ); onShortLinkReady( QString(), QString(), QVariant() ); onChanged(); diff --git a/src/SocialWidget.ui b/src/SocialWidget.ui index d8da77af0..195d5b9a7 100644 --- a/src/SocialWidget.ui +++ b/src/SocialWidget.ui @@ -6,8 +6,8 @@ 0 0 - 365 - 190 + 363 + 204 @@ -69,14 +69,34 @@ - - - - 16777215 - 96 - - - + + + + + + 16777215 + 96 + + + + + + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 1 + 8 + + + + +