#ifdef USE_V4L
// Video 4 Linux device detection
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < 10; ++i) {
QString path = "/dev/video" + QString::number(i);
if (QFile::exists(path)) {
QStringList deviceInfo = V4lCaptureHandler::getDeviceName(path);
QMap<QString, int> action_pos;
foreach (const QString& action_id, actions_map) {
// This loop find out at what index is the string that would map to the action_id.
- for (int i = 0; i < action_names.size(); i++) {
+ for (int i = 0; i < action_names.size(); ++i) {
if (mappable_actions[action_names[i]] == action_id) {
action_pos[action_id] = i;
break;
m_page7 = addPage(p7, i18n("Transcode"), "edit-copy");
connect(m_configTranscode.button_add, SIGNAL(clicked()), this, SLOT(slotAddTranscode()));
connect(m_configTranscode.button_delete, SIGNAL(clicked()), this, SLOT(slotDeleteTranscode()));
- connect(m_configTranscode.profiles_list, SIGNAL(itemChanged(QListWidgetItem *)), this, SLOT(slotDialogModified()));
+ connect(m_configTranscode.profiles_list, SIGNAL(itemChanged(QListWidgetItem*)), this, SLOT(slotDialogModified()));
connect(m_configTranscode.profiles_list, SIGNAL(currentRowChanged(int)), this, SLOT(slotSetTranscodeProfile()));
- connect(m_configTranscode.profile_name, SIGNAL(textChanged(const QString &)), this, SLOT(slotEnableTranscodeUpdate()));
- connect(m_configTranscode.profile_description, SIGNAL(textChanged(const QString &)), this, SLOT(slotEnableTranscodeUpdate()));
- connect(m_configTranscode.profile_extension, SIGNAL(textChanged(const QString &)), this, SLOT(slotEnableTranscodeUpdate()));
+ connect(m_configTranscode.profile_name, SIGNAL(textChanged(QString)), this, SLOT(slotEnableTranscodeUpdate()));
+ connect(m_configTranscode.profile_description, SIGNAL(textChanged(QString)), this, SLOT(slotEnableTranscodeUpdate()));
+ connect(m_configTranscode.profile_extension, SIGNAL(textChanged(QString)), this, SLOT(slotEnableTranscodeUpdate()));
connect(m_configTranscode.profile_parameters, SIGNAL(textChanged()), this, SLOT(slotEnableTranscodeUpdate()));
connect(m_configTranscode.profile_audioonly, SIGNAL(stateChanged(int)), this, SLOT(slotEnableTranscodeUpdate()));
}
if (!KdenliveSettings::default_profile().isEmpty()) {
- for (int i = 0; i < m_configProject.kcfg_profiles_list->count(); i++) {
+ for (int i = 0; i < m_configProject.kcfg_profiles_list->count(); ++i) {
if (m_configProject.kcfg_profiles_list->itemData(i).toString() == KdenliveSettings::default_profile()) {
m_configProject.kcfg_profiles_list->setCurrentIndex(i);
KdenliveSettings::setProfiles_list(i);
#endif
if (!KdenliveSettings::audiodrivername().isEmpty())
- for (int i = 1; i < m_configSdl.kcfg_audio_driver->count(); i++) {
+ for (int i = 1; i < m_configSdl.kcfg_audio_driver->count(); ++i) {
if (m_configSdl.kcfg_audio_driver->itemData(i).toString() == KdenliveSettings::audiodrivername()) {
m_configSdl.kcfg_audio_driver->setCurrentIndex(i);
KdenliveSettings::setAudio_driver((uint) i);
// parse devices
QString baseName = "/dev/input/event";
int fd;
- for (int i = 0; i < 30; i++) {
+ for (int i = 0; i < 30; ++i) {
QString filename = baseName + QString::number(i);
kDebug() << "/// CHECKING device: " << filename;
#ifdef USE_JOGSHUTTLE
// revert jog shuttle device
if (m_configShuttle.shuttledevicelist->count() > 0) {
- for (int i = 0; i < m_configShuttle.shuttledevicelist->count(); i++) {
+ for (int i = 0; i < m_configShuttle.shuttledevicelist->count(); ++i) {
if (m_configShuttle.shuttledevicelist->itemData(i) == KdenliveSettings::shuttledevice()) {
m_configShuttle.shuttledevicelist->setCurrentIndex(i);
break;
QMap<QString, int> action_pos;
foreach (const QString& action_id, actions_map) {
// This loop find out at what index is the string that would map to the action_id.
- for (int i = 0; i < action_names.size(); i++) {
+ for (int i = 0; i < action_names.size(); ++i) {
if (m_mappable_actions[action_names[i]] == action_id) {
action_pos[action_id] = i;
break;
// read the entries
transConfig.deleteGroup();
int max = m_configTranscode.profiles_list->count();
- for (int i = 0; i < max; i++) {
+ for (int i = 0; i < max; ++i) {
QListWidgetItem *item = m_configTranscode.profiles_list->item(i);
transConfig.writeEntry(item->text(), item->data(Qt::UserRole).toString());
}
QString itemSize;
QString pixelFormat;
QStringList itemRates;
- for (int i = 0; i < pixelformats.count(); i++) {
+ for (int i = 0; i < pixelformats.count(); ++i) {
QString format = pixelformats.at(i).section(':', 0, 0);
QStringList sizes = pixelformats.at(i).split(':', QString::SkipEmptyParts);
pixelFormat = sizes.takeFirst();
void KdenliveSettingsDialog::loadEncodingProfiles()
{
- KConfig conf("encodingprofiles.rc", KConfig::FullConfig, "appdata");
+ KConfig conf("encodingprofiles.rc", KConfig::CascadeConfig, "appdata");
// Load v4l profiles
m_configCapture.kcfg_v4l_profile->blockSignals(true);