mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 04:51:53 +02:00
tighten up the layout
This commit is contained in:
parent
b5698e9010
commit
f1723a85c0
@ -310,7 +310,7 @@ EchonestGenerator::sentenceSummary()
|
||||
QString center, suffix;
|
||||
QString summary = artist.dynamicCast< EchonestControl >()->summary();
|
||||
|
||||
if( i == 0 ) { // if it's the first.. special case
|
||||
if( i == 0 ) { // if it's the first.. special casez
|
||||
center = summary.remove( "~" );
|
||||
if( artists.size() == 2 ) // special case for 2, no comma. ( X and Y )
|
||||
suffix = " and ";
|
||||
@ -332,9 +332,9 @@ EchonestGenerator::sentenceSummary()
|
||||
}
|
||||
sentence += center + suffix;
|
||||
}
|
||||
qDebug() << "Got artists:" << sentence;
|
||||
/// Add each filter individually
|
||||
for( int i = 0; i < allcontrols.size(); i++ ) {
|
||||
// end case: if this is the last AND there is not a sorting filter (so this is the real last one)
|
||||
/// end case: if this is the last AND there is not a sorting filter (so this is the real last one)
|
||||
const bool last = ( i == allcontrols.size() - 1 && sorting.isNull() );
|
||||
QString prefix, suffix;
|
||||
if( last ) {
|
||||
|
@ -123,8 +123,8 @@ QWidget* DynamicControlWrapper::createDummy( QWidget* fromW, QWidget* parent )
|
||||
QWidget* dummy = new QWidget( parent );
|
||||
dummy->setContentsMargins( 0, 0, 0, 0 );
|
||||
dummy->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
|
||||
dummy->setMinimumSize( fromW->size() );
|
||||
dummy->setMaximumSize( fromW->size() );
|
||||
dummy->setMinimumSize( fromW->sizeHint() );
|
||||
dummy->setMaximumSize( fromW->sizeHint() );
|
||||
return dummy;
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ DynamicWidget::DynamicWidget( const Tomahawk::dynplaylist_ptr& playlist, QWidget
|
||||
|
||||
m_logo = new QLabel( this );
|
||||
if( !playlist->generator()->logo().isNull() ) {
|
||||
QPixmap p = playlist->generator()->logo().scaledToHeight( m_headerText->height(), Qt::SmoothTransformation );
|
||||
QPixmap p = playlist->generator()->logo().scaledToHeight( 16, Qt::SmoothTransformation );
|
||||
m_logo->setPixmap( p );
|
||||
}
|
||||
m_headerLayout->addWidget(m_logo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user