1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +02:00

re-named googleHint, serviceHint, and generalised

This commit is contained in:
Will Stott
2014-09-21 18:19:53 +01:00
parent 934279517c
commit 7b1e719511
3 changed files with 10 additions and 5 deletions

View File

@@ -94,7 +94,12 @@ GoogleWrapper::GoogleWrapper ( const QString& pluginID )
config->m_ui->xmppServer->setText( "talk.google.com" );
config->m_ui->xmppPort->setValue( 5222 );
config->m_ui->groupBoxXmppAdvanced->hide();
config->m_ui->googleHint->show();
config->m_ui->serviceHint->show();
config->m_ui->serviceHint->setText("<html><head/><body><p>" +
tr( "You may need to change your " ) +
"<a href=\"https://www.google.com/settings/security/lesssecureapps\"><span style=\" text-decoration: underline; color:#0000ff;\">" +
tr( "Google Account settings" ) + "</span></a>" +
tr( " to login." ) + "</p></body></html>");
m_onlinePixmap = QPixmap( ":/google-account/gmail-logo.png" );
m_offlinePixmap = QPixmap( ":/google-account/gmail-offline-logo.png" );

View File

@@ -49,7 +49,7 @@ XmppAccount::XmppAccount( const QString &accountId )
m_configWidget = QPointer< AccountConfigWidget >( new XmppConfigWidget( this, 0 ) );
XmppConfigWidget* config = static_cast< XmppConfigWidget* >( m_configWidget.data() );
config->m_ui->googleHint->hide();
config->m_ui->serviceHint->hide();
m_onlinePixmap = QPixmap( ":/xmpp-account/xmpp-icon.png" );
m_offlinePixmap = QPixmap( ":/xmpp-account/xmpp-offline-icon.png" );

View File

@@ -414,15 +414,15 @@
</widget>
</item>
<item>
<widget class="QLabel" name="googleHint">
<widget class="QLabel" name="serviceHint">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>20</height>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;You may need to change your &lt;a href=&quot;https://www.google.com/settings/security/lesssecureapps&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Google Account settings&lt;/span&gt;&lt;/a&gt; to login.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>