1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

Merge remote-tracking branch 'lfranchi/accounts' into accounts

This commit is contained in:
Leo Franchi 2012-02-10 18:53:03 -05:00
commit 478ff17e67
3 changed files with 3 additions and 45 deletions

View File

@ -89,7 +89,7 @@ public slots:
else if ( b == m_deleteButton )
{
m_deleted = true;
emit deleted();
emit closedWithDelete();
reject();
}
else

View File

@ -443,7 +443,7 @@ SettingsDialog::openAccountConfig( Account* account, bool showDelete )
{
if( account->configurationWidget() )
{
#ifndef Q_WS_MAC
#if 0
DelegateConfigWrapper dialog( account->configurationWidget(), QString("%1 Configuration" ).arg( account->accountFriendlyName() ), this );
dialog.setShowDelete( showDelete );
QWeakPointer< DelegateConfigWrapper > watcher( &dialog );
@ -490,8 +490,6 @@ SettingsDialog::accountConfigDelete()
Account* account = qobject_cast< Account* >( dialog->property( "accountplugin" ).value< QObject* >() );
Q_ASSERT( account );
AccountManager::instance()->removeAccount( account );
sender()->deleteLater();
}

View File

@ -102,51 +102,11 @@
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="showResolvers">
<property name="text">
<string>Show music sources</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="showSIP">
<property name="text">
<string>Show friend sources</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="showPushAccounts">
<property name="text">
<string>Show update services</string>
</property>
</widget>
</item>
</layout>
<layout class="QHBoxLayout" name="horizontalLayout_2"/>
</item>
<item>
<widget class="QListView" name="accountsView"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QPushButton" name="addNewServiceBtn">
<property name="text">
<string>Add new service...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeServiceBtn">
<property name="text">
<string>Remove Service</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>