mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-22 13:43:11 +02:00
* Set fixed widths for add / remove buttons in the settings dialog.
This commit is contained in:
@@ -70,6 +70,11 @@ SettingsDialog::SettingsDialog( QWidget *parent )
|
|||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
TomahawkSettings* s = TomahawkSettings::instance();
|
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->checkBoxHttp->setChecked( s->httpEnabled() );
|
||||||
ui->checkBoxStaticPreferred->setChecked( s->preferStaticHostPort() );
|
ui->checkBoxStaticPreferred->setChecked( s->preferStaticHostPort() );
|
||||||
ui->checkBoxUpnp->setChecked( s->externalAddressMode() == TomahawkSettings::Upnp );
|
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* ) ) );
|
connect( ui->listWidget, SIGNAL( currentItemChanged( QListWidgetItem* ,QListWidgetItem* ) ), this, SLOT( changePage( QListWidgetItem*, QListWidgetItem* ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SettingsDialog::setupSipButtons()
|
SettingsDialog::setupSipButtons()
|
||||||
{
|
{
|
||||||
foreach( SipPluginFactory* f, SipHandler::instance()->pluginFactories() ) {
|
foreach( SipPluginFactory* f, SipHandler::instance()->pluginFactories() )
|
||||||
if( f->isUnique() && SipHandler::instance()->hasPluginType( f->factoryId() ) ) {
|
{
|
||||||
|
if( f->isUnique() && SipHandler::instance()->hasPluginType( f->factoryId() ) )
|
||||||
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user