]> git.sesse.net Git - kdenlive/commitdiff
Fix jog shuttle slot (Qt's moc doesn't like slots in #ifdef's)
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 7 Sep 2012 12:58:34 +0000 (14:58 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 7 Sep 2012 12:58:34 +0000 (14:58 +0200)
src/kdenlivesettingsdialog.cpp
src/kdenlivesettingsdialog.h

index 1b1bce532aa7ea5cf9ef3672ef54fc42790bdb59..90216935afc080e3bd3f6f7e1d258f8f6b88c702 100644 (file)
@@ -521,10 +521,10 @@ void KdenliveSettingsDialog::slotEditImageApplication()
     delete dlg;
 }
 
-#ifdef USE_JOGSHUTTLE
 void KdenliveSettingsDialog::slotCheckShuttle(int state)
 {
-    m_configShuttle.config_group->setEnabled(state);
+#ifdef USE_JOGSHUTTLE
+  m_configShuttle.config_group->setEnabled(state);
     if (m_configShuttle.shuttledevicelist->count() == 0) {
         // parse devices
         QString baseName = "/dev/input/event";
@@ -542,16 +542,17 @@ void KdenliveSettingsDialog::slotCheckShuttle(int state)
         }
         if (KdenliveSettings::shuttledevice().isEmpty()) QTimer::singleShot(1500, this, SLOT(slotUpdateShuttleDevice()));
     }
+#endif /* USE_JOGSHUTTLE */
 }
 
 void KdenliveSettingsDialog::slotUpdateShuttleDevice(int ix)
 {
+#ifdef USE_JOGSHUTTLE
     QString device = m_configShuttle.shuttledevicelist->itemData(ix).toString();
     //KdenliveSettings::setShuttledevice(device);
     m_configShuttle.kcfg_shuttledevice->setText(device);
-}
-
 #endif /* USE_JOGSHUTTLE */
+}
 
 void KdenliveSettingsDialog::updateWidgets()
 {
index 9208107a22835e2e10592db56d8bad943d68e6a9..ed57d12d05084c8c69cd76056e099501cadb2ddb 100644 (file)
@@ -53,10 +53,8 @@ protected slots:
 
 private slots:
     void slotUpdateDisplay();
-#ifdef USE_JOGSHUTTLE
     void slotCheckShuttle(int state = 0);
     void slotUpdateShuttleDevice(int ix = 0);
-#endif
     void slotEditImageApplication();
     void slotEditAudioApplication();
     void slotEditVideoApplication();