From 0ee5cc9facbe07c0d30ee43a0d40ee10812f8e49 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Sat, 8 Jan 2011 17:01:21 +0000 Subject: [PATCH] Fix some layout issues in the keyframe editor svn path=/trunk/kdenlive/; revision=5302 --- src/keyframeedit.cpp | 7 +++---- src/keyframehelper.cpp | 2 -- src/widgets/keyframeeditor_ui.ui | 35 +++++++++----------------------- 3 files changed, 13 insertions(+), 31 deletions(-) diff --git a/src/keyframeedit.cpp b/src/keyframeedit.cpp index 6dde054d..2ff857ad 100644 --- a/src/keyframeedit.cpp +++ b/src/keyframeedit.cpp @@ -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); diff --git a/src/keyframehelper.cpp b/src/keyframehelper.cpp index c5a63502..f59c60a2 100644 --- a/src/keyframehelper.cpp +++ b/src/keyframehelper.cpp @@ -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 diff --git a/src/widgets/keyframeeditor_ui.ui b/src/widgets/keyframeeditor_ui.ui index 976b143a..b101e6c6 100644 --- a/src/widgets/keyframeeditor_ui.ui +++ b/src/widgets/keyframeeditor_ui.ui @@ -122,31 +122,6 @@ - - - - - 0 - - - - - Add keyframes - - - Keyframes - - - Qt::ToolButtonTextBesideIcon - - - true - - - - - - @@ -154,6 +129,16 @@ + + + + Add keyframes + + + true + + + -- 2.39.2