http://www.kdenlive.org/mantis/view.php?id=748
svn path=/trunk/kdenlive/; revision=3260
QWidget *p3 = new QWidget;
m_configDisplay.setupUi(p3);
QWidget *p3 = new QWidget;
m_configDisplay.setupUi(p3);
- page3 = addPage(p3, i18n("Display"), "display");
+ page3 = addPage(p3, i18n("Display"), "video-display");
QWidget *p2 = new QWidget;
m_configEnv.setupUi(p2);
QWidget *p2 = new QWidget;
m_configEnv.setupUi(p2);
+ connect(m_configSdl.kcfg_audio_driver, SIGNAL(currentIndexChanged(int)), this, SLOT(slotCheckAlsaDriver()));
initDevices();
connect(m_configMisc.kcfg_profiles_list, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateDisplay()));
connect(m_configCapture.kcfg_rmd_capture_type, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateRmdRegionStatus()));
initDevices();
connect(m_configMisc.kcfg_profiles_list, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateDisplay()));
connect(m_configCapture.kcfg_rmd_capture_type, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateRmdRegionStatus()));
KdenliveSettings::setDefault_profile(m_defaultPath);
bool resetProfile = false;
KdenliveSettings::setDefault_profile(m_defaultPath);
bool resetProfile = false;
- QString value = m_configSdl.kcfg_audio_device->itemData(m_configSdl.kcfg_audio_device->currentIndex()).toString();
- if (value != KdenliveSettings::audiodevicename()) {
- KdenliveSettings::setAudiodevicename(value);
- resetProfile = true;
- }
if (m_configEnv.capturefolderurl->url().path() != KdenliveSettings::capturefolder()) {
kDebug() << "/// CAPT FOLDER UPDATED";
if (m_configEnv.capturefolderurl->url().path() != KdenliveSettings::capturefolder()) {
kDebug() << "/// CAPT FOLDER UPDATED";
emit updateCaptureFolder();
}
emit updateCaptureFolder();
}
- value = m_configCapture.kcfg_rmd_alsa_device->itemData(m_configCapture.kcfg_rmd_alsa_device->currentIndex()).toString();
+ QString value = m_configCapture.kcfg_rmd_alsa_device->itemData(m_configCapture.kcfg_rmd_alsa_device->currentIndex()).toString();
if (value != KdenliveSettings::rmd_alsadevicename()) {
KdenliveSettings::setRmd_alsadevicename(value);
}
if (value != KdenliveSettings::rmd_alsadevicename()) {
KdenliveSettings::setRmd_alsadevicename(value);
}
+ if (value == "alsa") {
+ // Audio device setting is only valid for alsa driver
+ value = m_configSdl.kcfg_audio_device->itemData(m_configSdl.kcfg_audio_device->currentIndex()).toString();
+ if (value != KdenliveSettings::audiodevicename()) {
+ KdenliveSettings::setAudiodevicename(value);
+ resetProfile = true;
+ }
+ } else if (KdenliveSettings::audiodevicename().isEmpty() == false) {
+ KdenliveSettings::setAudiodevicename(QString::null);
+ resetProfile = true;
+ }
+
value = m_configSdl.kcfg_video_driver->itemData(m_configSdl.kcfg_video_driver->currentIndex()).toString();
if (value != KdenliveSettings::videodrivername()) {
KdenliveSettings::setVideodrivername(value);
value = m_configSdl.kcfg_video_driver->itemData(m_configSdl.kcfg_video_driver->currentIndex()).toString();
if (value != KdenliveSettings::videodrivername()) {
KdenliveSettings::setVideodrivername(value);
m_defaultPath = currentProfile;
}
m_defaultPath = currentProfile;
}
+void KdenliveSettingsDialog::slotCheckAlsaDriver()
+{
+ QString value = m_configSdl.kcfg_audio_driver->itemData(m_configSdl.kcfg_audio_driver->currentIndex()).toString();
+ m_configSdl.kcfg_audio_device->setEnabled(value == "alsa");
+}
#include "kdenlivesettingsdialog.moc"
#include "kdenlivesettingsdialog.moc"
void slotEditVideoApplication();
void slotReadAudioDevices();
void slotUpdateRmdRegionStatus();
void slotEditVideoApplication();
void slotReadAudioDevices();
void slotUpdateRmdRegionStatus();
+ void slotCheckAlsaDriver();
private:
KPageWidgetItem *page1;
private:
KPageWidgetItem *page1;