void UploaderConfigWidget_MediaCrush::saveSettings()
{
    UploaderConfig config;

    QVariantMap savingValues;
    savingValues.insert(KEY_MCSH_URL, ui->editUrl->text());

    config.saveSettings("mediacru.sh", savingValues);
}
コード例 #2
0
void UploaderConfigWidget::saveSettings()
{
    UploaderConfig config;
    QVariantMap savingValues;
    savingValues.insert(KEY_AUTO_COPY_RESULT_LIMK, _ui->checkAutoCopyMainLink->isChecked());

    QString defaultHost = config.labelsList().at(_ui->cbxDefaultHost->currentIndex());
    savingValues.insert(KEY_DEFAULT_HOST, defaultHost);

    config.saveSettings("common", savingValues);

    QMetaObject::invokeMethod(_imgur, "saveSettings");

}