diff --git a/source/carla_widgets.py b/source/carla_widgets.py index d71308295..02f2a0bf3 100755 --- a/source/carla_widgets.py +++ b/source/carla_widgets.py @@ -460,12 +460,9 @@ class PluginEdit(QDialog): self.ui.sb_ctrl_channel.setValue(self.fControlChannel+1) self.ui.scrollArea = PixmapKeyboardHArea(self) + self.ui.keyboard = self.ui.scrollArea.keyboard self.layout().addWidget(self.ui.scrollArea) - self.ui.keyboard = self.ui.scrollArea.keyboard - self.ui.keyboard.setMode(self.ui.keyboard.HORIZONTAL) - self.ui.keyboard.setOctaves(10) - self.ui.scrollArea.setEnabled(False) self.ui.scrollArea.setVisible(False) diff --git a/source/widgets/pixmapkeyboard.py b/source/widgets/pixmapkeyboard.py index cca32aaae..7dfcae8d7 100644 --- a/source/widgets/pixmapkeyboard.py +++ b/source/widgets/pixmapkeyboard.py @@ -462,6 +462,7 @@ class PixmapKeyboardHArea(QScrollArea): self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.keyboard = PixmapKeyboard(self) + self.keyboard.setMode(PixmapKeyboard.HORIZONTAL) self.keyboard.setOctaves(10) self.setWidget(self.keyboard)