setWindowTitle(i18n("Manage Encoding Profiles"));
profile_type->addItem(i18n("Proxy clips"), 0);
profile_type->addItem(i18n("Video4Linux capture"), 1);
- profile_type->addItem(i18n("Decklink capture"), 2);
+ profile_type->addItem(i18n("Screen capture"), 2);
+ profile_type->addItem(i18n("Decklink capture"), 3);
button_add->setIcon(KIcon("list-add"));
button_edit->setIcon(KIcon("document-edit"));
button_delete->setIcon(KIcon("list-remove"));
button_download->setIcon(KIcon("download"));
- m_configFile = new KConfig("encodingprofiles.rc", KConfig::FullConfig, "appdata");
+ m_configFile = new KConfig("encodingprofiles.rc", KConfig::CascadeConfig, "appdata");
profile_type->setCurrentIndex(profileType);
connect(profile_type, SIGNAL(currentIndexChanged(int)), this, SLOT(slotLoadProfiles()));
connect(profile_list, SIGNAL(currentRowChanged(int)), this, SLOT(slotShowParams()));
case 1:
group = "video4linux";
break;
+ case 2:
+ group = "screengrab";
+ break;
default:
- case 2:
+ case 3:
group = "decklink";
break;
}
-
+ delete m_configGroup;
m_configGroup = new KConfigGroup(m_configFile, group);
QMap< QString, QString > values = m_configGroup->entryMap();
QMapIterator<QString, QString> i(values);