Commit bd60a7ea authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Re-introduce transparency slider in titler background color

parent 3c6d6c58
......@@ -106,6 +106,8 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
backgroundAlpha->setMinimum(0);
backgroundAlpha->setMaximum(255);
bgAlphaSlider->setMinimum(0);
bgAlphaSlider->setMaximum(255);
//backgroundAlpha->setDecimals(0);
backgroundAlpha->setValue(0);
backgroundAlpha->setToolTip(i18n("Background color opacity"));
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1051</width>
<height>1182</height>
<width>1048</width>
<height>1174</height>
</rect>
</property>
<property name="windowTitle">
......@@ -995,7 +995,21 @@
</property>
</spacer>
</item>
<item row="0" column="0">
<item row="1" column="0">
<widget class="QSlider" name="bgAlphaSlider">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="backgroundAlpha">
<property name="maximum">
<number>256</number>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="KColorButton" name="backgroundColor">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
......@@ -1019,13 +1033,6 @@
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="backgroundAlpha">
<property name="maximum">
<number>256</number>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab">
......@@ -1337,16 +1344,16 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KColorButton</class>
<extends>QPushButton</extends>
<header>kcolorbutton.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KColorButton</class>
<extends>QPushButton</extends>
<header>kcolorbutton.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
......@@ -1446,5 +1453,37 @@
</hint>
</hints>
</connection>
<connection>
<sender>backgroundAlpha</sender>
<signal>valueChanged(int)</signal>
<receiver>bgAlphaSlider</receiver>
<slot>setValue(int)</slot>
<hints>
<hint type="sourcelabel">
<x>994</x>
<y>453</y>
</hint>
<hint type="destinationlabel">
<x>719</x>
<y>453</y>
</hint>
</hints>
</connection>
<connection>
<sender>bgAlphaSlider</sender>
<signal>valueChanged(int)</signal>
<receiver>backgroundAlpha</receiver>
<slot>setValue(int)</slot>
<hints>
<hint type="sourcelabel">
<x>719</x>
<y>453</y>
</hint>
<hint type="destinationlabel">
<x>994</x>
<y>453</y>
</hint>
</hints>
</connection>
</connections>
</ui>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment