Fix a bug where we were setting default settings no matter what and do some minor UI enhancements.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16411 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
João Mesquita
2010-01-19 23:54:32 +00:00
parent a2710c9ccb
commit 236db6ae69
6 changed files with 24 additions and 3 deletions

View File

@@ -14,6 +14,8 @@ AccountDialog::AccountDialog(QString accId, QWidget *parent) :
connect(this, SIGNAL(accepted()), this, SLOT(writeConfig()));
connect(ui->sofiaExtraParamAddBtn, SIGNAL(clicked()), this, SLOT(addExtraParam()));
connect(ui->sofiaExtraParamRemBtn, SIGNAL(clicked()), this, SLOT(remExtraParam()));
ui->sofiaExtraParamTable->horizontalHeader()->setStretchLastSection(true);
}
AccountDialog::~AccountDialog()
@@ -55,6 +57,9 @@ void AccountDialog::addExtraParam()
ui->sofiaExtraParamTable->setRowCount(ui->sofiaExtraParamTable->rowCount()+1);
ui->sofiaExtraParamTable->setItem(ui->sofiaExtraParamTable->rowCount()-1,0,paramNameItem);
ui->sofiaExtraParamTable->setItem(ui->sofiaExtraParamTable->rowCount()-1,1,paramValItem);
ui->sofiaExtraParamTable->resizeColumnsToContents();
ui->sofiaExtraParamTable->resizeRowsToContents();
ui->sofiaExtraParamTable->horizontalHeader()->setStretchLastSection(true);
}
void AccountDialog::readConfig()
@@ -95,6 +100,10 @@ void AccountDialog::readConfig()
_settings->endGroup();
_settings->endGroup();
ui->sofiaExtraParamTable->resizeColumnsToContents();
ui->sofiaExtraParamTable->resizeRowsToContents();
ui->sofiaExtraParamTable->horizontalHeader()->setStretchLastSection(true);
}
void AccountDialog::writeConfig()