Browse Source

Minor cleanup

tags/1.9.4
falkTX 10 years ago
parent
commit
c6ef2414d2
2 changed files with 2 additions and 4 deletions
  1. +1
    -4
      source/carla_widgets.py
  2. +1
    -0
      source/widgets/pixmapkeyboard.py

+ 1
- 4
source/carla_widgets.py View File

@@ -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)



+ 1
- 0
source/widgets/pixmapkeyboard.py View File

@@ -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)



Loading…
Cancel
Save