X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fencodingprofilesdialog.cpp;h=857a7fd55dbdacde3e5bcc6c4c87fa59a6075adc;hb=b6d6c25f1bd07f11a0ceaf32a3a5bcaeab367336;hp=02a029f2366627226dc51f77597c1bf05f237f9e;hpb=ed5a2c50b2402499f775bee428e079cac7bde423;p=kdenlive diff --git a/src/encodingprofilesdialog.cpp b/src/encodingprofilesdialog.cpp index 02a029f2..857a7fd5 100644 --- a/src/encodingprofilesdialog.cpp +++ b/src/encodingprofilesdialog.cpp @@ -70,22 +70,22 @@ void EncodingProfilesDialog::slotLoadProfiles() profile_list->clear(); QString group; switch (profile_type->currentIndex()) { - case 0: - group = "proxy"; - break; - case 1: - group = "video4linux"; - break; - case 2: - group = "screengrab"; - break; - default: - case 3: - group = "decklink"; - break; + case 0: + group = "proxy"; + break; + case 1: + group = "video4linux"; + break; + case 2: + group = "screengrab"; + break; + default: + case 3: + group = "decklink"; + break; } - + delete m_configGroup; m_configGroup = new KConfigGroup(m_configFile, group); QMap< QString, QString > values = m_configGroup->entryMap(); QMapIterator i(values); @@ -105,14 +105,16 @@ void EncodingProfilesDialog::slotShowParams() { profile_parameters->clear(); QListWidgetItem *item = profile_list->currentItem(); - if (!item) return; + if (!item) + return; profile_parameters->setPlainText(item->data(Qt::UserRole).toString().section(';', 0, 0)); } void EncodingProfilesDialog::slotDeleteProfile() { QListWidgetItem *item = profile_list->currentItem(); - if (!item) return; + if (!item) + return; QString profile = item->text(); m_configGroup->deleteEntry(profile); slotLoadProfiles(); @@ -184,3 +186,5 @@ void EncodingProfilesDialog::slotEditProfile() delete d; } + +#include "encodingprofilesdialog.moc"