1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Drop shadow on cover in SocialWidget, and layout fix.

This commit is contained in:
Teo Mrnjavac
2012-10-15 19:19:55 +02:00
parent cf6d1c32c4
commit 72d486ccbb
2 changed files with 32 additions and 11 deletions

View File

@@ -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();

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>365</width>
<height>190</height>
<width>363</width>
<height>204</height>
</rect>
</property>
<property name="windowTitle">
@@ -68,6 +68,8 @@
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTextEdit" name="textEdit">
<property name="maximumSize">
@@ -78,6 +80,24 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>1</width>
<height>8</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>