mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
bit of osx tweaks
This commit is contained in:
@@ -48,10 +48,10 @@ AccountFactoryWrapper::AccountFactoryWrapper( AccountFactory* factory, QWidget*
|
|||||||
|
|
||||||
load();
|
load();
|
||||||
|
|
||||||
|
|
||||||
connect( m_ui->buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
|
connect( m_ui->buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
|
||||||
connect( m_ui->buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
|
connect( m_ui->buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
|
||||||
connect( m_ui->buttonBox, SIGNAL( clicked( QAbstractButton*) ), this, SLOT( buttonClicked() ) );
|
connect( m_ui->buttonBox, SIGNAL( clicked( QAbstractButton*) ), this, SLOT( buttonClicked( QAbstractButton* ) ) );
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
setContentsMargins( 0, 0, 0, 0 );
|
setContentsMargins( 0, 0, 0, 0 );
|
||||||
m_ui->verticalLayout->setSpacing( 4 );
|
m_ui->verticalLayout->setSpacing( 4 );
|
||||||
@@ -70,8 +70,13 @@ AccountFactoryWrapper::load()
|
|||||||
item->setData( 0, AccountRole, QVariant::fromValue< QObject *>( acc ) );
|
item->setData( 0, AccountRole, QVariant::fromValue< QObject *>( acc ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
|
const int padding = 7;
|
||||||
|
#else
|
||||||
|
const int padding = 8;
|
||||||
|
#endif
|
||||||
|
const int height = m_ui->accountsList->model()->rowCount( QModelIndex() ) * ACCOUNT_ROW_HEIGHT + padding;
|
||||||
|
|
||||||
const int height = m_ui->accountsList->model()->rowCount( QModelIndex() ) * ACCOUNT_ROW_HEIGHT + 7;
|
|
||||||
m_ui->accountsList->setFixedHeight( height );
|
m_ui->accountsList->setFixedHeight( height );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -119,9 +119,6 @@ SettingsDialog::SettingsDialog( QWidget *parent )
|
|||||||
|
|
||||||
connect( m_accountModel, SIGNAL( createAccount( Tomahawk::Accounts::AccountFactory* ) ), this, SLOT( createAccountFromFactory( Tomahawk::Accounts::AccountFactory* ) ) );
|
connect( m_accountModel, SIGNAL( createAccount( Tomahawk::Accounts::AccountFactory* ) ), this, SLOT( createAccountFromFactory( Tomahawk::Accounts::AccountFactory* ) ) );
|
||||||
|
|
||||||
connect( AtticaManager::instance(), SIGNAL( resolverInstalled( QString ) ), this, SLOT( accountAdded( Tomahawk::Accounts::Account* ) ) );
|
|
||||||
connect( AtticaManager::instance(), SIGNAL( resolverUninstalled( QString ) ), this, SLOT( accountUninstalled( QString ) ) );
|
|
||||||
|
|
||||||
connect( ui->accountsView->selectionModel(), SIGNAL( selectionChanged( QItemSelection,QItemSelection ) ), this, SLOT( accountsSelectionChanged() ) );
|
connect( ui->accountsView->selectionModel(), SIGNAL( selectionChanged( QItemSelection,QItemSelection ) ), this, SLOT( accountsSelectionChanged() ) );
|
||||||
|
|
||||||
if ( !Servent::instance()->isReady() )
|
if ( !Servent::instance()->isReady() )
|
||||||
|
Reference in New Issue
Block a user