Commit 376e3d75 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

TrackControls: Adding a Fx button.

parent 9726c9d6
......@@ -49,6 +49,7 @@
<file alias="close">resources/images/close.png</file>
<file alias="help">resources/images/help.png</file>
<file alias="about">resources/images/about.png</file>
<file alias="fx">resources/images/fx.png</file>
</qresource>
<qresource prefix="/text">
<file>AUTHORS</file>
......
......@@ -40,7 +40,10 @@ TrackControls::TrackControls( GraphicsTrack* track, QWidget *parent ) :
else if ( track->mediaType() == Workflow::AudioTrack &&
s.contains( "audio" + QString::number( track->trackNumber() ) ) )
m_title = s.value( "audio" + QString::number( track->trackNumber() ) ).toString();
m_ui->setupUi( this );
if ( track->mediaType() != Workflow::VideoTrack )
m_ui->fxButton->hide();
setTrackDisabled( !m_track->isEnabled() );
connect( m_ui->disableButton, SIGNAL( clicked(bool) ),
this, SLOT( setTrackDisabled(bool) ) );
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>104</width>
<height>22</height>
<width>131</width>
<height>29</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -51,6 +51,45 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fxButton">
<property name="maximumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="icon">
<iconset resource="../../../../resources.qrc">
<normaloff>:/images/fx</normaloff>:/images/fx</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="ExtendedLabel" name="trackLabel">
<property name="text">
......@@ -67,6 +106,8 @@
<header>ExtendedLabel.h</header>
</customwidget>
</customwidgets>
<resources/>
<resources>
<include location="../../../../resources.qrc"/>
</resources>
<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