mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* BUG: TWK-312 - Fixed AnimatedSplitter cutting off child widgets.
This commit is contained in:
@@ -50,10 +50,10 @@ TopBar::TopBar( QWidget* parent )
|
|||||||
connect( ui->filterEdit, SIGNAL( textChanged( QString ) ), SIGNAL( filterTextChanged( QString ) ) );
|
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->setStyleSheet( "QLineEdit { border: 1px solid gray; border-radius: 6px; margin-right: 2px; }" );
|
||||||
|
ui->filterEdit->setInactiveText( tr( "Filter" ) );
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
ui->filterEdit->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
ui->filterEdit->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
#endif
|
#endif
|
||||||
ui->filterEdit->setInactiveText( tr( "Filter" ) );
|
|
||||||
|
|
||||||
ui->filterEdit->searchButton()->setImage( QImage( RESPATH "images/filter.png" ) );
|
ui->filterEdit->searchButton()->setImage( QImage( RESPATH "images/filter.png" ) );
|
||||||
|
|
||||||
|
@@ -104,6 +104,11 @@ AnimatedSplitter::onSizeChanged( const QSize& size )
|
|||||||
if ( i == m_greedyIndex )
|
if ( i == m_greedyIndex )
|
||||||
{
|
{
|
||||||
j = height() - size.height();
|
j = height() - size.height();
|
||||||
|
for ( int x = 0; x < count(); x++ )
|
||||||
|
{
|
||||||
|
if ( x != i && x != wi )
|
||||||
|
j -= widget( x )->height();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ( i == wi )
|
else if ( i == wi )
|
||||||
{
|
{
|
||||||
|
@@ -621,6 +621,8 @@ ViewManager::setPage( ViewPage* page, bool trackHistory )
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_stack->setCurrentWidget( page->widget() );
|
m_stack->setCurrentWidget( page->widget() );
|
||||||
|
page->widget()->setFocus();
|
||||||
|
|
||||||
updateView();
|
updateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -56,6 +56,8 @@ NewPlaylistWidget::NewPlaylistWidget( QWidget* parent )
|
|||||||
ui->suggestionsView->overlay()->setEnabled( false );
|
ui->suggestionsView->overlay()->setEnabled( false );
|
||||||
|
|
||||||
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( updateSuggestions() ) );
|
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( updateSuggestions() ) );
|
||||||
|
|
||||||
|
ui->titleEdit->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -34,9 +34,6 @@
|
|||||||
<height>26</height>
|
<height>26</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="focusPolicy">
|
|
||||||
<enum>Qt::StrongFocus</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Reference in New Issue
Block a user