Commit 1a5de2aa authored by Alexander Akulich's avatar Alexander Akulich
Browse files

Remove unneeded arguments

parent 9308f106
......@@ -51,7 +51,7 @@ MainOptionsWidgetKDETalk::MainOptionsWidgetKDETalk(ParameterEditModel *model,
}
handleParameter(QLatin1String("password"), QVariant::String, m_ui->passwordLineEdit, m_ui->passwordLabel);
handleParameter(QLatin1String("register"), QVariant::Bool, m_ui->registerCheckBox, 0);
handleParameter(QLatin1String("register"), QVariant::Bool, m_ui->registerCheckBox);
QTimer::singleShot(0, m_ui->accountLineEdit, SLOT(setFocus()));
}
......
......@@ -44,7 +44,7 @@ MainOptionsWidget::MainOptionsWidget(ParameterEditModel *model,
handleParameter(QLatin1String("account"), QVariant::String, m_ui->accountLineEdit, m_ui->accountLabel);
handleParameter(QLatin1String("password"), QVariant::String, m_ui->passwordLineEdit, m_ui->passwordLabel);
handleParameter(QLatin1String("register"), QVariant::Bool, m_ui->registerCheckBox, 0);
handleParameter(QLatin1String("register"), QVariant::Bool, m_ui->registerCheckBox);
QTimer::singleShot(0, m_ui->accountLineEdit, SLOT(setFocus()));
}
......
......@@ -30,11 +30,11 @@ ServerSettingsWidget::ServerSettingsWidget(ParameterEditModel *model,
handleParameter(QLatin1String("server"), QVariant::String, m_ui->serverLineEdit, m_ui->serverLabel);
handleParameter(QLatin1String("port"), QVariant::UInt, m_ui->portSpinBox, m_ui->portLabel);
handleParameter(QLatin1String("keepalive-interval"), QVariant::UInt, m_ui->keepaliveIntervalSpinBox, 0);
handleParameter(QLatin1String("low-bandwidth"), QVariant::Bool, m_ui->lowBandwidthCheckBox, 0);
handleParameter(QLatin1String("require-encryption"), QVariant::Bool, m_ui->requireEncryptionCheckBox, 0);
handleParameter(QLatin1String("ignore-ssl-errors"), QVariant::Bool, m_ui->ignoreSslErrorsCheckBox, 0);
handleParameter(QLatin1String("old-ssl"), QVariant::Bool, m_ui->oldSslCheckBox, 0);
handleParameter(QLatin1String("keepalive-interval"), QVariant::UInt, m_ui->keepaliveIntervalSpinBox);
handleParameter(QLatin1String("low-bandwidth"), QVariant::Bool, m_ui->lowBandwidthCheckBox);
handleParameter(QLatin1String("require-encryption"), QVariant::Bool, m_ui->requireEncryptionCheckBox);
handleParameter(QLatin1String("ignore-ssl-errors"), QVariant::Bool, m_ui->ignoreSslErrorsCheckBox);
handleParameter(QLatin1String("old-ssl"), QVariant::Bool, m_ui->oldSslCheckBox);
handleParameter(QLatin1String("resource"), QVariant::String, m_ui->resourceLineEdit, m_ui->resourceLabel);
handleParameter(QLatin1String("priority"), QVariant::Int, m_ui->prioritySpinBox, m_ui->priorityLabel);
}
......
......@@ -33,10 +33,10 @@ AimServerSettingsWidget::AimServerSettingsWidget(ParameterEditModel *model,
handleParameter(QLatin1String("port"), QVariant::UInt, m_ui->serverPort, m_ui->serverPortLabel);
//security
handleParameter(QLatin1String("encryption"), QVariant::String, m_ui->encryption, m_ui->encryptionLabel);
handleParameter(QLatin1String("always-use-rv-proxy"), QVariant::Bool, m_ui->rvProxy, 0);
handleParameter(QLatin1String("always-use-rv-proxy"), QVariant::Bool, m_ui->rvProxy);
//other
handleParameter(QLatin1String("use-clientlogin"), QVariant::Bool, m_ui->clientLogin, 0);
handleParameter(QLatin1String("allow-multiple-logins"), QVariant::Bool, m_ui->multipleLogins, 0);
handleParameter(QLatin1String("use-clientlogin"), QVariant::Bool, m_ui->clientLogin);
handleParameter(QLatin1String("allow-multiple-logins"), QVariant::Bool, m_ui->multipleLogins);
}
AimServerSettingsWidget::~AimServerSettingsWidget()
......
......@@ -34,9 +34,9 @@ IcqServerSettingsWidget::IcqServerSettingsWidget(ParameterEditModel *model,
handleParameter(QLatin1String("server"), QVariant::String, m_ui->serverLineEdit, m_ui->serverLabel);
handleParameter(QLatin1String("port"), QVariant::Int, m_ui->portSpinBox, m_ui->portLabel);
handleParameter(QLatin1String("use-ssl"), QVariant::Bool, m_ui->useSslCheckBox, 0);
handleParameter(QLatin1String("allow-multiple-logins"), QVariant::Bool, m_ui->allowMultipleLoginsCheckBox, 0);
handleParameter(QLatin1String("always-use-rv-proxy"), QVariant::Bool, m_ui->alwaysUseRvProxyCheckBox, 0);
handleParameter(QLatin1String("use-ssl"), QVariant::Bool, m_ui->useSslCheckBox);
handleParameter(QLatin1String("allow-multiple-logins"), QVariant::Bool, m_ui->allowMultipleLoginsCheckBox);
handleParameter(QLatin1String("always-use-rv-proxy"), QVariant::Bool, m_ui->alwaysUseRvProxyCheckBox);
// update combo box for charset parameter
Q_FOREACH (const QString &name, KCharsets::charsets()->descriptiveEncodingNames()) {
......
......@@ -34,7 +34,7 @@ SipeAdvancedSettingsWidget::SipeAdvancedSettingsWidget(ParameterEditModel *model
handleParameter(QLatin1String("transport"), QVariant::String, m_ui->transportLineEdit, m_ui->transportLabel);
handleParameter(QLatin1String("useragent"), QVariant::String, m_ui->useragentLineEdit, m_ui->useragentLabel);
handleParameter(QLatin1String("authentication"), QVariant::String, m_ui->authenticationLineEdit, m_ui->authenticationLabel);
handleParameter(QLatin1String("dont-publish"), QVariant::Bool, m_ui->dontpublishCheckBox, 0);
handleParameter(QLatin1String("dont-publish"), QVariant::Bool, m_ui->dontpublishCheckBox);
handleParameter(QLatin1String("email-url"), QVariant::String, m_ui->emailurlLineEdit, m_ui->emailurlLabel);
handleParameter(QLatin1String("email"), QVariant::String, m_ui->emailLineEdit, m_ui->emailLabel);
handleParameter(QLatin1String("email-login"), QVariant::String, m_ui->emailloginLineEdit, m_ui->emailloginLabel);
......
......@@ -28,11 +28,11 @@ SkypeAdvancedSettingsWidget::SkypeAdvancedSettingsWidget(ParameterEditModel *mod
m_ui->setupUi(this);
//server
handleParameter(QLatin1String("skypeout-online"), QVariant::Bool, m_ui->skypeOutCheckBox, 0);
handleParameter(QLatin1String("skype-sync"), QVariant::Bool, m_ui->syncCheckBox, 0);
handleParameter(QLatin1String("check-for-updates"),QVariant::Bool, m_ui->updatesCheckBox, 0);
handleParameter(QLatin1String("reject-all-auths"), QVariant::Bool, m_ui->authRequestsCheckBox, 0);
handleParameter(QLatin1String("skype-autostart"), QVariant::Bool, m_ui->autostartCheckBox, 0);
handleParameter(QLatin1String("skypeout-online"), QVariant::Bool, m_ui->skypeOutCheckBox);
handleParameter(QLatin1String("skype-sync"), QVariant::Bool, m_ui->syncCheckBox);
handleParameter(QLatin1String("check-for-updates"),QVariant::Bool, m_ui->updatesCheckBox);
handleParameter(QLatin1String("reject-all-auths"), QVariant::Bool, m_ui->authRequestsCheckBox);
handleParameter(QLatin1String("skype-autostart"), QVariant::Bool, m_ui->autostartCheckBox);
}
SkypeAdvancedSettingsWidget::~SkypeAdvancedSettingsWidget()
......
......@@ -38,8 +38,8 @@ YahooServerSettingsWidget::YahooServerSettingsWidget(ParameterEditModel *model,
handleParameter(QLatin1String("room-list-locale"), QVariant::String, m_ui->roomListLocale, m_ui->roomListLocaleLablel);
handleParameter(QLatin1String("charset"), QVariant::String, m_ui->charsetComboBox, m_ui->charsetLabel);
//other
handleParameter(QLatin1String("proxy-ssl"), QVariant::Bool, m_ui->SslProxy, 0);
handleParameter(QLatin1String("ignore-invites"), QVariant::Bool, m_ui->ignoreInvites, 0);
handleParameter(QLatin1String("proxy-ssl"), QVariant::Bool, m_ui->SslProxy);
handleParameter(QLatin1String("ignore-invites"), QVariant::Bool, m_ui->ignoreInvites);
// update combo box for charset parameter
//KF5 TODO
......
......@@ -34,8 +34,8 @@ SipeAdvancedOptionsWidget::SipeAdvancedOptionsWidget(ParameterEditModel *model,
handleParameter(QLatin1String("transport"), QVariant::String, m_ui->transportComboBox, m_ui->transportLabel);
handleParameter(QLatin1String("useragent"), QVariant::String, m_ui->useragentLineEdit, m_ui->useragentLabel);
handleParameter(QLatin1String("authentication"), QVariant::String, m_ui->authenticationComboBox, m_ui->authenticationLabel);
handleParameter(QLatin1String("single-sign-on"), QVariant::Bool, m_ui->singlesignonCheckBox, 0);
handleParameter(QLatin1String("don't-publish-calendar"), QVariant::Bool, m_ui->dontpublishcalendarCheckBox, 0);
handleParameter(QLatin1String("single-sign-on"), QVariant::Bool, m_ui->singlesignonCheckBox);
handleParameter(QLatin1String("don't-publish-calendar"), QVariant::Bool, m_ui->dontpublishcalendarCheckBox);
}
SipeAdvancedOptionsWidget::~SipeAdvancedOptionsWidget()
......
......@@ -30,8 +30,7 @@ SunshineAdvancedOptionsWidget::SunshineAdvancedOptionsWidget(ParameterEditModel*
m_ui->setupUi(this);
handleParameter(QLatin1String("use-specified-server"), QVariant::Bool,
m_ui->serverGroupBox,
0);
m_ui->serverGroupBox);
handleParameter(QLatin1String("server"), QVariant::String,
m_ui->serverLineEdit,
m_ui->serverLabel);
......
......@@ -106,7 +106,7 @@ QVariant ParameterEditModel::data(const QModelIndex &index, int role) const
Qt::ItemFlags ParameterEditModel::flags(const QModelIndex &index) const
{
Qt::ItemFlags flags = 0;
Qt::ItemFlags flags;
if (!index.isValid()) {
return flags;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment