Browse Source

Backwards compatible with older Qt5

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha2
falkTX 6 years ago
parent
commit
a385d1b438
Signed by: falkTX <falktx@gmail.com> GPG Key ID: 2D3445A829213837
2 changed files with 6 additions and 15 deletions
  1. +5
    -14
      resources/ui/carla_host.ui
  2. +1
    -1
      source/frontend/carla_host.py

+ 5
- 14
resources/ui/carla_host.ui View File

@@ -67,16 +67,7 @@
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<property name="margin">
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
@@ -239,7 +230,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1058</width> <width>1058</width>
<height>30</height>
<height>20</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menu_File"> <widget class="QMenu" name="menu_File">
@@ -716,7 +707,7 @@
</layout> </layout>
</widget> </widget>
</widget> </widget>
<widget class="QTabWidget" name="tabWidget_2">
<widget class="QTabWidget" name="tw_miniCanvas">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@@ -729,7 +720,7 @@
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>0</number>
</property> </property>
<property name="tabBarAutoHide">
<property name="tabBarAutoHide" stdset="0">
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QWidget" name="tab_3"> <widget class="QWidget" name="tab_3">
@@ -740,7 +731,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<attribute name="title"> <attribute name="title">
<string>Tab 1</string>
<string/>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="verticalLayout_7">
<property name="spacing"> <property name="spacing">


+ 1
- 1
source/frontend/carla_host.py View File

@@ -374,7 +374,7 @@ class HostWindow(QMainWindow):
self.ui.scrollArea.setEnabled(False) self.ui.scrollArea.setEnabled(False)


self.ui.miniCanvasPreview.setRealParent(self) self.ui.miniCanvasPreview.setRealParent(self)
self.ui.verticalLayout_7.setContentsMargins(0, 0, 0, 1)
self.ui.tw_miniCanvas.tabBar().hide()


# ---------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------
# Set up GUI (special stuff for Mac OS) # Set up GUI (special stuff for Mac OS)


Loading…
Cancel
Save