]> git.sesse.net Git - kdenlive/commitdiff
Some ui love for new effect stack
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 28 Mar 2012 01:03:54 +0000 (03:03 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 28 Mar 2012 01:03:54 +0000 (03:03 +0200)
13 files changed:
icons/hi16-action-kdenlive-deleffect.png [new file with mode: 0644]
icons/hi16-action-kdenlive-down.png [new file with mode: 0644]
icons/hi16-action-kdenlive-menu.png [new file with mode: 0644]
icons/hi16-action-kdenlive-up.png [new file with mode: 0644]
icons/ox16-action-kdenlive-deleffect.png [new file with mode: 0644]
icons/ox16-action-kdenlive-down.png [new file with mode: 0644]
icons/ox16-action-kdenlive-menu.png [new file with mode: 0644]
icons/ox16-action-kdenlive-up.png [new file with mode: 0644]
src/effectstack/collapsibleeffect.cpp
src/effectstack/collapsibleeffect.h
src/effectstack/effectstackview2.cpp
src/effectstackedit.cpp
src/widgets/collapsiblewidget_ui.ui

diff --git a/icons/hi16-action-kdenlive-deleffect.png b/icons/hi16-action-kdenlive-deleffect.png
new file mode 100644 (file)
index 0000000..4aa45c9
Binary files /dev/null and b/icons/hi16-action-kdenlive-deleffect.png differ
diff --git a/icons/hi16-action-kdenlive-down.png b/icons/hi16-action-kdenlive-down.png
new file mode 100644 (file)
index 0000000..83009eb
Binary files /dev/null and b/icons/hi16-action-kdenlive-down.png differ
diff --git a/icons/hi16-action-kdenlive-menu.png b/icons/hi16-action-kdenlive-menu.png
new file mode 100644 (file)
index 0000000..f4073e1
Binary files /dev/null and b/icons/hi16-action-kdenlive-menu.png differ
diff --git a/icons/hi16-action-kdenlive-up.png b/icons/hi16-action-kdenlive-up.png
new file mode 100644 (file)
index 0000000..5ec0108
Binary files /dev/null and b/icons/hi16-action-kdenlive-up.png differ
diff --git a/icons/ox16-action-kdenlive-deleffect.png b/icons/ox16-action-kdenlive-deleffect.png
new file mode 100644 (file)
index 0000000..7e3027a
Binary files /dev/null and b/icons/ox16-action-kdenlive-deleffect.png differ
diff --git a/icons/ox16-action-kdenlive-down.png b/icons/ox16-action-kdenlive-down.png
new file mode 100644 (file)
index 0000000..1752227
Binary files /dev/null and b/icons/ox16-action-kdenlive-down.png differ
diff --git a/icons/ox16-action-kdenlive-menu.png b/icons/ox16-action-kdenlive-menu.png
new file mode 100644 (file)
index 0000000..17bab86
Binary files /dev/null and b/icons/ox16-action-kdenlive-menu.png differ
diff --git a/icons/ox16-action-kdenlive-up.png b/icons/ox16-action-kdenlive-up.png
new file mode 100644 (file)
index 0000000..32cc3ab
Binary files /dev/null and b/icons/ox16-action-kdenlive-up.png differ
index 831556d8083854b41459914058295bed83ba2a10..346f9e72ee656499a7dea33bc4fe425128e53828 100644 (file)
@@ -50,6 +50,7 @@
 #include <QDialog>
 #include <QMenu>
 #include <QVBoxLayout>
+
 #include <KDebug>
 #include <KGlobalSettings>
 #include <KLocale>
@@ -57,6 +58,7 @@
 #include <KStandardDirs>
 #include <KFileDialog>
 #include <KUrlRequester>
+#include <KColorScheme>
 
 class Boolval: public QWidget, public Ui::Boolval_UI
 {
@@ -130,22 +132,22 @@ CollapsibleEffect::CollapsibleEffect(QDomElement effect, QDomElement original_ef
     setupUi(this);
     filterWheelEvent = true;
     m_info.fromString(effect.attribute("kdenlive_info"));
-    frame->setBackgroundRole(QPalette::Midlight);
-    frame->setAutoFillBackground(true);
+    //frame->setBackgroundRole(QPalette::Midlight);
+    //frame->setAutoFillBackground(true);
     setFont(KGlobalSettings::smallestReadableFont());
    
-    buttonUp->setIcon(KIcon("go-up"));
+    buttonUp->setIcon(KIcon("kdenlive-up"));
     buttonUp->setToolTip(i18n("Move effect up"));
     if (!lastEffect) {
-        buttonDown->setIcon(KIcon("go-down"));
+        buttonDown->setIcon(KIcon("kdenlive-down"));
         buttonDown->setToolTip(i18n("Move effect down"));
     }
-    buttonDel->setIcon(KIcon("edit-delete"));
+    buttonDel->setIcon(KIcon("kdenlive-deleffect"));
     buttonDel->setToolTip(i18n("Delete effect"));
-
-    buttonUp->setVisible(false);
-    buttonDown->setVisible(false);
-    buttonDel->setVisible(false);
+    if (effectIndex() == 1) buttonUp->setVisible(false);
+    if (m_lastEffect) buttonDown->setVisible(false);
+    //buttonUp->setVisible(false);
+    //buttonDown->setVisible(false);
     
     /*buttonReset->setIcon(KIcon("view-refresh"));
     buttonReset->setToolTip(i18n("Reset effect"));*/
@@ -166,24 +168,25 @@ CollapsibleEffect::CollapsibleEffect(QDomElement effect, QDomElement original_ef
        else if (m_effect.attribute("tag") == "region") icon = KIcon("kdenlive-mask-effect");
        else if (type == "custom") icon = KIcon("kdenlive-custom-effect");
        else icon = KIcon("kdenlive-show-video");
-       title->setIcon(icon);
+       effecticon->setPixmap(icon.pixmap(16,16));
        m_menu->addAction(KIcon("folder-new"), i18n("Create Group"), this, SLOT(slotCreateGroup()));
        setupWidget(info, ix, metaInfo);
     }
     else {
        title->setText(i18n("Effect Group"));
-       title->setIcon(KIcon("folder"));
+       effecticon->setPixmap(KIcon("folder").pixmap(16,16));
        m_menu->addAction(KIcon("list-remove"), i18n("Ungroup"), this, SLOT(slotUnGroup()));
     }
     setAcceptDrops(true);
-    title->setMenu(m_menu);
+    menuButton->setIcon(KIcon("kdenlive-menu"));
+    menuButton->setMenu(m_menu);
     
     if (m_effect.attribute("disable") == "1") {
-        enabledBox->setCheckState(Qt::Unchecked);
         title->setEnabled(false);
+       enabledBox->setChecked(false);
     }
     else {
-        enabledBox->setCheckState(Qt::Checked);
+        enabledBox->setChecked(true);
     }
 
     connect(collapseButton, SIGNAL(clicked()), this, SLOT(slotSwitch()));
@@ -212,6 +215,49 @@ CollapsibleEffect::~CollapsibleEffect()
     delete m_menu;
 }
 
+//static
+const QString CollapsibleEffect::getStyleSheet(QPalette p)
+{
+    KColorScheme scheme(p.currentColorGroup(), KColorScheme::View, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
+    QColor dark_bg = scheme.shade(KColorScheme::DarkShade);
+    QColor selected_bg = scheme.decoration(KColorScheme::FocusColor).color();
+    QColor hover_bg = scheme.decoration(KColorScheme::HoverColor).color();
+    QColor light_bg = scheme.shade(KColorScheme::LightShade);
+    QColor normal_bg = scheme.background(KColorScheme::NormalBackground).color();
+    
+    KColorScheme scheme2(p.currentColorGroup(), KColorScheme::Window, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
+    QColor normal_bg2 = scheme2.background(KColorScheme::NormalBackground).color();
+
+    QString stylesheet(QString("QProgressBar::chunk:horizontal {background: %6;border-top-left-radius: 4px;border-bottom-left-radius: 4px;} QProgressBar::chunk:horizontal#dragOnly {background: %5;border-top-left-radius: 4px;border-bottom-left-radius: 4px;} QProgressBar::chunk:horizontal:hover {background: %3;}\
+    QProgressBar:horizontal {border: 1px solid %1;border-top-left-radius: 4px;border-bottom-left-radius: 4px;border-right:0px;background:%5;padding: 0px;text-align:left center}\
+                                QProgressBar:horizontal:disabled {border: 1px solid %6} QProgressBar:horizontal#dragOnly {background: %5}\
+                                QProgressBar:horizontal[inTimeline=\"true\"] { border: 1px solid %2;border-right: 0px;background: %4;padding: 0px;text-align:left center } QProgressBar::chunk:horizontal[inTimeline=\"true\"] {background: %2;}\
+                                QAbstractSpinBox#dragBox {border: 1px solid %1;border-top-right-radius: 4px;border-bottom-right-radius: 4px;padding-right:0px;} QAbstractSpinBox::down-button#dragBox {width:0px;padding:0px;}\
+                                QAbstractSpinBox:disabled#dragBox {border: 1px solid %6;}\
+                                QAbstractSpinBox::up-button#dragBox {width:0px;padding:0px;} QAbstractSpinBox[inTimeline=\"true\"]#dragBox { border: 1px solid %2;} QAbstractSpinBox:hover#dragBox {border: 1px solid %3;} ")
+                                .arg(dark_bg.name()).arg(hover_bg.name()).arg(selected_bg.name()).arg(light_bg.name()).arg(normal_bg.name()).arg(normal_bg2.name()));
+    return stylesheet;/*
+    QPalette p = QApplication::palette();
+    KColorScheme scheme(p.currentColorGroup(), KColorScheme::View, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
+    QColor dark_bg = scheme.shade(KColorScheme::DarkShade);
+    QColor selected_bg = scheme.decoration(KColorScheme::FocusColor).color();
+    QColor hover_bg = scheme.decoration(KColorScheme::HoverColor).color();
+    QColor light_bg = scheme.shade(KColorScheme::LightShade);
+    QColor normal_bg = scheme.background(KColorScheme::NormalBackground).color();
+    
+    KColorScheme scheme2(p.currentColorGroup(), KColorScheme::Window, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
+    QColor normal_bg2 = scheme2.background(KColorScheme::NormalBackground).color();
+
+    QString stylesheet(QString("QProgressBar::chunk:horizontal {background: %6;border-top-left-radius: 4px;border-bottom-left-radius: 4px;} QProgressBar::chunk:horizontal#dragOnly {background: %5;border-top-left-radius: 4px;border-bottom-left-radius: 4px;} QProgressBar::chunk:horizontal:hover {background: %3;}\
+    QProgressBar:horizontal {border: 1px solid %1;border-top-left-radius: 4px;border-bottom-left-radius: 4px;border-right:0px;background:%5;padding: 0px;text-align:left center}\
+                                QProgressBar:horizontal:disabled {border: 1px solid %6} QProgressBar:horizontal#dragOnly {background: %5}\
+                                QProgressBar:horizontal[inTimeline=\"true\"] { border: 1px solid %2;border-right: 0px;background: %4;padding: 0px;text-align:left center } QProgressBar::chunk:horizontal[inTimeline=\"true\"] {background: %2;}\
+                                QAbstractSpinBox#dragBox {border: 1px solid %1;border-top-right-radius: 4px;border-bottom-right-radius: 4px;padding-right:0px;} QAbstractSpinBox::down-button#dragBox {width:0px;padding:0px;}\
+                                QAbstractSpinBox:disabled#dragBox {border: 1px solid %6;}\
+                                QAbstractSpinBox::up-button#dragBox {width:0px;padding:0px;} QAbstractSpinBox[inTimeline=\"true\"]#dragBox { border: 1px solid %2;} QAbstractSpinBox:hover#dragBox {border: 1px solid %3;} ")
+                                .arg(dark_bg.name()).arg(hover_bg.name()).arg(selected_bg.name()).arg(light_bg.name()).arg(normal_bg.name()).arg(normal_bg2.name()));
+    return stylesheet;*/
+}
 
 void CollapsibleEffect::slotCreateGroup()
 {
@@ -286,8 +332,19 @@ void CollapsibleEffect::setActive(bool activate, bool focused)
     m_active = activate;
     if (focused) {
        frame->setBackgroundRole(QPalette::Highlight);
+       frame->setAutoFillBackground(true);
+    }
+    else {
+       frame->setBackgroundRole(QPalette::Window);
+       frame->setAutoFillBackground(false);
+       if (m_active) {
+           setBackgroundRole(QPalette::Mid);
+           setAutoFillBackground(true);
+       }
+       else setAutoFillBackground(false);
+       //title->setDown(m_active);
+       //frame->setBackgroundRole(m_active ? QPalette::Mid : QPalette::Midlight);
     }
-    else frame->setBackgroundRole(m_active ? QPalette::Mid : QPalette::Midlight);
 }
 
 void CollapsibleEffect::mouseDoubleClickEvent ( QMouseEvent * event )
@@ -304,17 +361,13 @@ void CollapsibleEffect::mousePressEvent ( QMouseEvent *event )
 
 void CollapsibleEffect::enterEvent ( QEvent * event )
 {
-    if (m_paramWidget == NULL || m_paramWidget->index() > 0) buttonUp->setVisible(true);
-    if (!m_lastEffect) buttonDown->setVisible(true);
-    buttonDel->setVisible(true);
+    //buttonDel->setVisible(true);
+    //menuButton->setVisible(true);
     QWidget::enterEvent(event);
 }
 
 void CollapsibleEffect::leaveEvent ( QEvent * event )
 {
-    buttonUp->setVisible(false);
-    buttonDown->setVisible(false);
-    buttonDel->setVisible(false);
     QWidget::leaveEvent(event);
 }
 
@@ -501,7 +554,7 @@ void CollapsibleEffect::setupWidget(ItemInfo info, int index, EffectMetaInfo *me
 
     if (m_effect.attribute("tag") == "region") {
         QVBoxLayout *vbox = new QVBoxLayout(widgetFrame);
-        vbox->setContentsMargins(0, 0, 0, 0);
+        vbox->setContentsMargins(2, 0, 2, 0);
        vbox->setSpacing(2);
         QDomNodeList effects =  m_effect.elementsByTagName("effect");
        QDomNodeList origin_effects =  m_original_effect.elementsByTagName("effect");
@@ -522,6 +575,7 @@ void CollapsibleEffect::setupWidget(ItemInfo info, int index, EffectMetaInfo *me
         if (m_effect.firstChildElement("parameter").isNull()) {
             // Effect has no parameter, don't allow expand
             collapseButton->setEnabled(false);
+           collapseButton->setVisible(false);
             widgetFrame->setVisible(false);            
         }
     }
@@ -572,6 +626,7 @@ void CollapsibleEffect::dragLeaveEvent(QDragLeaveEvent */*event*/)
 
 void CollapsibleEffect::dropEvent(QDropEvent *event)
 {
+    setActive(m_active, false);
     const QString effects = QString::fromUtf8(event->mimeData()->data("kdenlive/effectslist"));
     //event->acceptProposedAction();
     QDomDocument doc;
@@ -629,7 +684,7 @@ ParameterContainer::ParameterContainer(QDomElement effect, ItemInfo info, Effect
 
     bool stretch = true;
     m_vbox = new QVBoxLayout(parent);
-    m_vbox->setContentsMargins(0, 0, 0, 0);
+    m_vbox->setContentsMargins(2, 0, 2, 0);
     m_vbox->setSpacing(2);
 
     for (int i = 0; i < namenode.count() ; i++) {
index 49d843f19989036c055f3cbc3d297647c9d2573f..dbf03b589327bb6c5c8ab67264c7f7d4790a475d 100644 (file)
@@ -143,6 +143,9 @@ public:
     bool isActive() const;
     /** @brief Should the wheel event be sent to parent widget for scrolling. */
     bool filterWheelEvent;
+    
+    /** @brief Return the stylesheet required for effect parameters. */
+    static const QString getStyleSheet(QPalette p);
 
 public slots:
     void slotSyncEffectsPos(int pos);
index 5c37aa3619f5c6ebe68c61f592ce5ffe118095c7..829d2b6d66b676d9cdb31b35b9ab801d409a25ce 100644 (file)
@@ -64,21 +64,8 @@ EffectStackView2::EffectStackView2(Monitor *monitor, QWidget *parent) :
 
     setEnabled(false);
 
-    QPalette p = palette();
-    KColorScheme scheme(p.currentColorGroup(), KColorScheme::View, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
-    QColor dark_bg = scheme.shade(KColorScheme::DarkShade);
-    QColor selected_bg = scheme.decoration(KColorScheme::FocusColor).color();
-    QColor hover_bg = scheme.decoration(KColorScheme::HoverColor).color();
-    QColor light_bg = scheme.shade(KColorScheme::LightShade);
     
-    QString stylesheet(QString("QProgressBar:horizontal {border: 1px solid %1;border-radius:0px;border-top-left-radius: 4px;border-bottom-left-radius: 4px;border-right: 0px;background:%4;padding: 0px;text-align:left center}\
-                                QProgressBar:horizontal#dragOnly {background: %1} QProgressBar:horizontal:hover#dragOnly {background: %3} QProgressBar:horizontal:hover {border: 1px solid %3;border-right: 0px;}\
-                                QProgressBar::chunk:horizontal {background: %1;} QProgressBar::chunk:horizontal:hover {background: %3;}\
-                                QProgressBar:horizontal[inTimeline=\"true\"] { border: 1px solid %2;border-right: 0px;background: %4;padding: 0px;text-align:left center } QProgressBar::chunk:horizontal[inTimeline=\"true\"] {background: %2;}\
-                                QAbstractSpinBox#dragBox {border: 1px solid %1;border-top-right-radius: 4px;border-bottom-right-radius: 4px;padding-right:0px;} QAbstractSpinBox::down-button#dragBox {width:0px;padding:0px;}\
-                                QAbstractSpinBox::up-button#dragBox {width:0px;padding:0px;} QAbstractSpinBox[inTimeline=\"true\"]#dragBox { border: 1px solid %2;} QAbstractSpinBox:hover#dragBox {border: 1px solid %3;} ")
-                                .arg(dark_bg.name()).arg(selected_bg.name()).arg(hover_bg.name()).arg(light_bg.name()));
-    setStyleSheet(stylesheet);
+    setStyleSheet(CollapsibleEffect::getStyleSheet(palette()));
 }
 
 EffectStackView2::~EffectStackView2()
index 2c10f8340984462cb88c2cd39d0abd93a012d555..8f0ec5ec9d10ce400bdedf840b99a8694f1fbdb3 100644 (file)
@@ -44,7 +44,6 @@
 #include <KDebug>
 #include <KLocale>
 #include <KFileDialog>
-#include <KColorScheme>
 
 #include <QVBoxLayout>
 #include <QLabel>
@@ -99,21 +98,7 @@ EffectStackEdit::EffectStackEdit(Monitor *monitor, QWidget *parent) :
     setFrameStyle(QFrame::NoFrame);
     setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding));
     
-    QPalette p = palette();
-    KColorScheme scheme(p.currentColorGroup(), KColorScheme::View, KSharedConfig::openConfig(KdenliveSettings::colortheme()));
-    QColor dark_bg = scheme.shade(KColorScheme::DarkShade);
-    QColor selected_bg = scheme.decoration(KColorScheme::FocusColor).color();
-    QColor hover_bg = scheme.decoration(KColorScheme::HoverColor).color();    
-    QColor light_bg = scheme.shade(KColorScheme::LightShade);
-    
-    QString stylesheet(QString("QProgressBar:horizontal {border: 1px solid %1;border-radius:0px;border-top-left-radius: 4px;border-bottom-left-radius: 4px;border-right: 0px;background:%4;padding: 0px;text-align:left center}\
-                                QProgressBar:horizontal#dragOnly {background: %1} QProgressBar:horizontal:hover#dragOnly {background: %3} QProgressBar:horizontal:hover {border: 1px solid %3;border-right: 0px;}\
-                                QProgressBar::chunk:horizontal {background: %1;} QProgressBar::chunk:horizontal:hover {background: %3;}\
-                                QProgressBar:horizontal[inTimeline=\"true\"] { border: 1px solid %2;border-right: 0px;background: %4;padding: 0px;text-align:left center } QProgressBar::chunk:horizontal[inTimeline=\"true\"] {background: %2;}\
-                                QAbstractSpinBox#dragBox {border: 1px solid %1;border-top-right-radius: 4px;border-bottom-right-radius: 4px;padding-right:0px;} QAbstractSpinBox::down-button#dragBox {width:0px;padding:0px;}\
-                                QAbstractSpinBox::up-button#dragBox {width:0px;padding:0px;} QAbstractSpinBox[inTimeline=\"true\"]#dragBox { border: 1px solid %2;} QAbstractSpinBox:hover#dragBox {border: 1px solid %3;} ")
-                                .arg(dark_bg.name()).arg(selected_bg.name()).arg(hover_bg.name()).arg(light_bg.name()));
-    setStyleSheet(stylesheet);
+    setStyleSheet(CollapsibleEffect::getStyleSheet(palette()));
     setWidget(m_baseWidget);   
     /*m_vbox = new QVBoxLayout(m_baseWidget);
     m_vbox->setContentsMargins(0, 0, 0, 0);
index 5e5d061a5295d2e9caac6d079a5b01475ef45d20..d2ce7d78670a4281efb0cc553343b7d68794b4b3 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>185</width>
-    <height>42</height>
+    <width>226</width>
+    <height>37</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -20,7 +20,7 @@
    <property name="margin">
     <number>0</number>
    </property>
-   <item row="0" column="0" colspan="3">
+   <item row="0" column="0">
     <widget class="QFrame" name="frame">
      <property name="sizePolicy">
       <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
@@ -35,6 +35,9 @@
       <enum>QFrame::Plain</enum>
      </property>
      <layout class="QHBoxLayout" name="horizontalLayout">
+      <property name="spacing">
+       <number>0</number>
+      </property>
       <property name="leftMargin">
        <number>2</number>
       </property>
         </property>
        </widget>
       </item>
+      <item>
+       <widget class="KSeparator" name="kseparator">
+        <property name="orientation">
+         <enum>Qt::Vertical</enum>
+        </property>
+       </widget>
+      </item>
       <item>
        <widget class="QCheckBox" name="enabledBox">
         <property name="text">
          <string/>
         </property>
+        <property name="shortcut">
+         <string>Return</string>
+        </property>
        </widget>
       </item>
       <item>
-       <widget class="QToolButton" name="title">
+       <widget class="QLabel" name="effecticon">
         <property name="text">
-         <string>...</string>
-        </property>
-        <property name="popupMode">
-         <enum>QToolButton::MenuButtonPopup</enum>
-        </property>
-        <property name="toolButtonStyle">
-         <enum>Qt::ToolButtonTextBesideIcon</enum>
+         <string/>
         </property>
-        <property name="autoRaise">
-         <bool>true</bool>
+       </widget>
+      </item>
+      <item>
+       <widget class="QLabel" name="title">
+        <property name="text">
+         <string/>
         </property>
        </widget>
       </item>
         </property>
        </spacer>
       </item>
+      <item>
+       <widget class="QToolButton" name="menuButton">
+        <property name="maximumSize">
+         <size>
+          <width>22</width>
+          <height>22</height>
+         </size>
+        </property>
+        <property name="text">
+         <string>...</string>
+        </property>
+        <property name="popupMode">
+         <enum>QToolButton::InstantPopup</enum>
+        </property>
+        <property name="autoRaise">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
       <item>
        <widget class="QToolButton" name="buttonUp">
+        <property name="maximumSize">
+         <size>
+          <width>22</width>
+          <height>22</height>
+         </size>
+        </property>
         <property name="text">
          <string>...</string>
         </property>
       </item>
       <item>
        <widget class="QToolButton" name="buttonDown">
+        <property name="maximumSize">
+         <size>
+          <width>22</width>
+          <height>22</height>
+         </size>
+        </property>
         <property name="text">
          <string>...</string>
         </property>
       </item>
       <item>
        <widget class="QToolButton" name="buttonDel">
+        <property name="maximumSize">
+         <size>
+          <width>22</width>
+          <height>22</height>
+         </size>
+        </property>
         <property name="text">
          <string>...</string>
         </property>
      </layout>
     </widget>
    </item>
-   <item row="1" column="0" colspan="3">
+   <item row="1" column="0">
     <widget class="QFrame" name="widgetFrame">
      <property name="frameShape">
       <enum>QFrame::NoFrame</enum>
      </property>
     </widget>
    </item>
+   <item row="2" column="0">
+    <widget class="Line" name="line">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+    </widget>
+   </item>
   </layout>
  </widget>
+ <customwidgets>
+  <customwidget>
+   <class>KSeparator</class>
+   <extends>QFrame</extends>
+   <header>kseparator.h</header>
+  </customwidget>
+ </customwidgets>
  <resources/>
  <connections/>
 </ui>