mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 19:14:06 +02:00
Do not expand Hot Playlists View on init
This commit is contained in:
@@ -163,9 +163,6 @@ NetworkActivityWidget::NetworkActivityWidget( QWidget* parent )
|
|||||||
d->ui->playlistView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
d->ui->playlistView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
d->ui->playlistView->setItemDelegate( new PlaylistDelegate() );
|
d->ui->playlistView->setItemDelegate( new PlaylistDelegate() );
|
||||||
d->ui->playlistView->setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
|
d->ui->playlistView->setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
|
||||||
d->ui->playlistView->overlay()->setText( tr( "Coming soon." ) );
|
|
||||||
d->ui->playlistView->overlay()->resize( 380, 86 );
|
|
||||||
d->ui->playlistView->overlay()->setEnabled( true );
|
|
||||||
|
|
||||||
QPalette p = d->ui->playlistView->palette();
|
QPalette p = d->ui->playlistView->palette();
|
||||||
p.setColor( QPalette::Text, TomahawkStyle::HEADER_TEXT );
|
p.setColor( QPalette::Text, TomahawkStyle::HEADER_TEXT );
|
||||||
@@ -176,7 +173,6 @@ NetworkActivityWidget::NetworkActivityWidget( QWidget* parent )
|
|||||||
|
|
||||||
d->ui->playlistView->setPalette( p );
|
d->ui->playlistView->setPalette( p );
|
||||||
d->ui->playlistView->overlay()->setPalette( p );
|
d->ui->playlistView->overlay()->setPalette( p );
|
||||||
d->ui->playlistView->setMinimumHeight( 400 );
|
|
||||||
d->ui->playlistView->setStyleSheet( "QListView { background-color: transparent; }" );
|
d->ui->playlistView->setStyleSheet( "QListView { background-color: transparent; }" );
|
||||||
TomahawkStyle::styleScrollBar( d->ui->playlistView->verticalScrollBar() );
|
TomahawkStyle::styleScrollBar( d->ui->playlistView->verticalScrollBar() );
|
||||||
TomahawkStyle::stylePageFrame( d->ui->playlistsFrame );
|
TomahawkStyle::stylePageFrame( d->ui->playlistsFrame );
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>875</width>
|
<width>875</width>
|
||||||
<height>526</height>
|
<height>675</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="Tomahawk::Widgets::PlaylistWidget" name="playlistView">
|
<widget class="Tomahawk::Widgets::PlaylistWidget" name="playlistView">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
Reference in New Issue
Block a user