]> git.sesse.net Git - kdenlive/commitdiff
Fix some layout issues in the keyframe editor
authorTill Theato <root@ttill.de>
Sat, 8 Jan 2011 17:01:21 +0000 (17:01 +0000)
committerTill Theato <root@ttill.de>
Sat, 8 Jan 2011 17:01:21 +0000 (17:01 +0000)
svn path=/trunk/kdenlive/; revision=5302

src/keyframeedit.cpp
src/keyframehelper.cpp
src/widgets/keyframeeditor_ui.ui

index 6dde054dafaea67c84e2bf2156120661865c3489..2ff857ad7e6505820e3ac73726eaf89ca6f28f4d 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
-                          geomeytrval.cpp  -  description
+                          keyframedit.cpp  -  description
                              -------------------
     begin                : 03 Aug 2008
     copyright            : (C) 2008 by Marco Gittler
@@ -41,7 +41,7 @@ KeyframeEdit::KeyframeEdit(QDomElement e, int minFrame, int maxFrame, Timecode t
     buttonSeek->setChecked(KdenliveSettings::keyframeseek());
     connect(buttonSeek, SIGNAL(toggled(bool)), this, SLOT(slotSetSeeking(bool)));
 
-    buttonKeyframes->setIcon(KIcon("list-add"));
+    buttonKeyframes->setIcon(KIcon("chronometer"));
     button_add->setIcon(KIcon("list-add"));
     button_add->setToolTip(i18n("Add keyframe"));
     button_delete->setIcon(KIcon("list-remove"));
@@ -126,8 +126,7 @@ void KeyframeEdit::addParameter(QDomElement e, int activeKeyframe)
 
     // make the radiobutton stay at the top
     QVBoxLayout *radioLayout = new QVBoxLayout(this);
-    radioLayout->addWidget(radio);
-    radioLayout->addStretch();
+    radioLayout->addWidget(radio, 0, Qt::AlignTop);
     m_slidersLayout->addLayout(radioLayout, columnId, 1);
 
     QStringList frames = e.attribute("keyframes").split(";", QString::SkipEmptyParts);
index c5a6350263b20b345251e4437fac45a62a38a793..f59c60a29ede58744353dba5034fe03dbd49d809 100644 (file)
@@ -186,8 +186,6 @@ void KeyframeHelper::paintEvent(QPaintEvent *e)
     pa.setPoints(3, cursor - 5, 15, cursor + 5, 15, cursor, 10);
     p.setBrush(palette().dark().color());
     p.drawPolygon(pa);
-
-
 }
 
 int KeyframeHelper::value() const
index 976b143a3abae7f86b040f026b92a69945149be3..b101e6c60fa07e0558a082895eeeaab1dc570da5 100644 (file)
      </layout>
     </widget>
    </item>
-   <item row="1" column="0">
-    <widget class="QWidget" name="widget" native="true">
-     <layout class="QGridLayout" name="gridLayout_3">
-      <property name="margin">
-       <number>0</number>
-      </property>
-      <item row="0" column="0">
-       <widget class="QToolButton" name="buttonKeyframes">
-        <property name="toolTip">
-         <string>Add keyframes</string>
-        </property>
-        <property name="text">
-         <string>Keyframes</string>
-        </property>
-        <property name="toolButtonStyle">
-         <enum>Qt::ToolButtonTextBesideIcon</enum>
-        </property>
-        <property name="autoRaise">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
    <item row="0" column="0" colspan="3">
     <widget class="Line" name="line_2">
      <property name="orientation">
      </property>
     </widget>
    </item>
+   <item row="1" column="0">
+    <widget class="QToolButton" name="buttonKeyframes">
+     <property name="toolTip">
+      <string>Add keyframes</string>
+     </property>
+     <property name="autoRaise">
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
   </layout>
  </widget>
  <resources/>