1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* BUG: TWK-312 - Fixed AnimatedSplitter cutting off child widgets.

This commit is contained in:
Christian Muehlhaeuser
2011-08-09 03:21:49 +02:00
parent a46aadd843
commit 6cba708640
5 changed files with 10 additions and 4 deletions

View File

@@ -50,10 +50,10 @@ TopBar::TopBar( QWidget* parent )
connect( ui->filterEdit, SIGNAL( textChanged( QString ) ), SIGNAL( filterTextChanged( QString ) ) );
ui->filterEdit->setStyleSheet( "QLineEdit { border: 1px solid gray; border-radius: 6px; margin-right: 2px; }" );
ui->filterEdit->setInactiveText( tr( "Filter" ) );
#ifdef Q_WS_MAC
ui->filterEdit->setAttribute( Qt::WA_MacShowFocusRect, 0 );
#endif
ui->filterEdit->setInactiveText( tr( "Filter" ) );
ui->filterEdit->searchButton()->setImage( QImage( RESPATH "images/filter.png" ) );

View File

@@ -104,6 +104,11 @@ AnimatedSplitter::onSizeChanged( const QSize& size )
if ( i == m_greedyIndex )
{
j = height() - size.height();
for ( int x = 0; x < count(); x++ )
{
if ( x != i && x != wi )
j -= widget( x )->height();
}
}
else if ( i == wi )
{

View File

@@ -621,6 +621,8 @@ ViewManager::setPage( ViewPage* page, bool trackHistory )
}
m_stack->setCurrentWidget( page->widget() );
page->widget()->setFocus();
updateView();
}

View File

@@ -56,6 +56,8 @@ NewPlaylistWidget::NewPlaylistWidget( QWidget* parent )
ui->suggestionsView->overlay()->setEnabled( false );
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( updateSuggestions() ) );
ui->titleEdit->setFocus();
}

View File

@@ -34,9 +34,6 @@
<height>26</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item>