[license] Set object names

- This is prep-work now that the CSS styling branch has merged
This commit is contained in:
Adriaan de Groot 2019-04-23 17:05:44 -04:00
parent 982a3fb372
commit f0d26a74b7

View File

@ -57,6 +57,8 @@ LicenseWidget::LicenseWidget( LicenseEntry entry, QWidget* parent )
QPalette pal( palette() ); QPalette pal( palette() );
pal.setColor( QPalette::Background, palette().background().color().lighter( 108 ) ); pal.setColor( QPalette::Background, palette().background().color().lighter( 108 ) );
setObjectName( "licenseItem" );
setAutoFillBackground( true ); setAutoFillBackground( true );
setPalette( pal ); setPalette( pal );
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ); setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );
@ -87,6 +89,7 @@ LicenseWidget::LicenseWidget( LicenseEntry entry, QWidget* parent )
m_fullText->setText( loadLocalFile( m_entry.m_url ) ); m_fullText->setText( loadLocalFile( m_entry.m_url ) );
m_fullText->hide(); m_fullText->hide();
m_fullText->setStyleSheet( "border-top: 1px solid black; margin-top: 1em; padding-top: 1em;" ); m_fullText->setStyleSheet( "border-top: 1px solid black; margin-top: 1em; padding-top: 1em;" );
m_fullText->setObjectName( "licenseItemFullText" );
vLayout->addWidget( m_fullText ); vLayout->addWidget( m_fullText );
setLayout( vLayout ); setLayout( vLayout );