Browse Source

Cleanup

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-alpha2
falkTX 5 years ago
parent
commit
5af1422b9d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      source/frontend/carla_settings.py
  2. +2
    -2
      source/frontend/carla_widgets.py

+ 2
- 2
source/frontend/carla_settings.py View File

@@ -20,7 +20,7 @@
# Imports (Global)

from PyQt5.QtCore import pyqtSlot, QByteArray, QDir, QSettings
from PyQt5.QtGui import QColor, QCursor, QFontMetrics, QPainter, QPainterPath
from PyQt5.QtGui import QColor, QCursor, QPainter, QPainterPath
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QFrame, QInputDialog, QLineEdit, QMenu, QVBoxLayout, QWidget

# ------------------------------------------------------------------------------------------------------------
@@ -233,7 +233,7 @@ class CarlaSettingsW(QDialog):
# ----------------------------------------------------------------------------------------------------
# Set-up GUI

self.ui.lw_page.setFixedWidth(48 + 6*3 + QFontMetrics(self.ui.lw_page.font()).width(" Experimental "))
self.ui.lw_page.setFixedWidth(48 + 6*3 + self.ui.lw_page.fontMetrics().width(" Experimental "))

for i in range(host.get_engine_driver_count()):
self.ui.cb_engine_audio_driver.addItem(host.get_engine_driver_name(i))


+ 2
- 2
source/frontend/carla_widgets.py View File

@@ -881,7 +881,7 @@ class PluginEdit(QDialog):
# Get width values, in packs of 20

if parameter['type'] == PARAMETER_INPUT:
paramInputWidthTMP = QFontMetrics(self.font()).width(parameter['name'])
paramInputWidthTMP = self.fontMetrics().width(parameter['name'])

if paramInputWidthTMP > paramInputWidth:
paramInputWidth = paramInputWidthTMP
@@ -894,7 +894,7 @@ class PluginEdit(QDialog):
paramInputWidth = 0

else:
paramOutputWidthTMP = QFontMetrics(self.font()).width(parameter['name'])
paramOutputWidthTMP = self.fontMetrics().width(parameter['name'])

if paramOutputWidthTMP > paramOutputWidth:
paramOutputWidth = paramOutputWidthTMP


Loading…
Cancel
Save