1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-19 04:11:46 +02:00

* Set fixed widths for add / remove buttons in the settings dialog.

This commit is contained in:
Christian Muehlhaeuser
2011-08-15 01:55:41 +02:00
parent 3df2c2a104
commit 3d28293250
2 changed files with 11 additions and 3 deletions

View File

@@ -70,6 +70,11 @@ SettingsDialog::SettingsDialog( QWidget *parent )
ui->setupUi( this );
TomahawkSettings* s = TomahawkSettings::instance();
ui->addSipButton->setFixedWidth( 42 );
ui->removeSipButton->setFixedWidth( ui->addSipButton->width() );
ui->addScript->setFixedWidth( 42 );
ui->removeScript->setFixedWidth( ui->addScript->width() );
ui->checkBoxHttp->setChecked( s->httpEnabled() );
ui->checkBoxStaticPreferred->setChecked( s->preferStaticHostPort() );
ui->checkBoxUpnp->setChecked( s->externalAddressMode() == TomahawkSettings::Upnp );
@@ -283,11 +288,14 @@ SettingsDialog::createIcons()
connect( ui->listWidget, SIGNAL( currentItemChanged( QListWidgetItem* ,QListWidgetItem* ) ), this, SLOT( changePage( QListWidgetItem*, QListWidgetItem* ) ) );
}
void
SettingsDialog::setupSipButtons()
{
foreach( SipPluginFactory* f, SipHandler::instance()->pluginFactories() ) {
if( f->isUnique() && SipHandler::instance()->hasPluginType( f->factoryId() ) ) {
foreach( SipPluginFactory* f, SipHandler::instance()->pluginFactories() )
{
if( f->isUnique() && SipHandler::instance()->hasPluginType( f->factoryId() ) )
{
continue;
}

View File

@@ -93,7 +93,7 @@ private slots:
void sipPluginRowDeleted( bool );
void updateScanOptionsView();
// dialog slots
void resolverConfigClosed( int value );
void sipConfigClosed( int value );