]> git.sesse.net Git - kdenlive/commitdiff
Some smaller UI improvements on the settings for on-monitor widgets
authorTill Theato <root@ttill.de>
Sun, 17 Oct 2010 13:40:19 +0000 (13:40 +0000)
committerTill Theato <root@ttill.de>
Sun, 17 Oct 2010 13:40:19 +0000 (13:40 +0000)
svn path=/trunk/kdenlive/; revision=5016

src/cornerswidget.cpp
src/geometrywidget.cpp
src/widgets/cornerswidget_ui.ui
src/widgets/geometrywidget_ui.ui
src/widgets/monitorscenecontrolwidget_ui.ui

index 6ae670f4418eb66c5ec99b4e41be35dd3532b638..44b876a814de5ca037fd03e3603d294ae55f57a2 100644 (file)
@@ -48,8 +48,11 @@ CornersWidget::CornersWidget(Monitor* monitor, int clipPos, bool isEffect, int f
 
     m_config = new MonitorSceneControlWidget(m_scene, m_ui.frameConfig);
     QHBoxLayout *layout = new QHBoxLayout(m_ui.frameConfig);
-    layout->addWidget(m_config->getShowHideButton());
+    layout->setContentsMargins(0, 0, 0, 0);
     layout->addWidget(m_config);
+    QHBoxLayout *layout2 = new QHBoxLayout(m_ui.widgetConfigButton);
+    layout2->setContentsMargins(0, 0, 0, 0);
+    layout2->addWidget(m_config->getShowHideButton());
 
     int width = m_monitor->render->frameRenderWidth();
     int height = m_monitor->render->renderHeight();
index 4fb694849de529f1572b21136e1e10d658808433..7b2bca0950d50ab4be97f7eea1f0284e5b00b250 100644 (file)
@@ -127,7 +127,7 @@ GeometryWidget::GeometryWidget(Monitor* monitor, Timecode timecode, int clipPos,
     QHBoxLayout *settingsLayout = new QHBoxLayout(m_ui.frameSettings);
     settingsLayout->addWidget(m_config);
     settingsLayout->setContentsMargins(0, 0, 0, 0);
-    ((QGridLayout *)m_ui.widgetFirstColumn->layout())->addWidget(m_config->getShowHideButton(), 1, 2);
+    ((QGridLayout *)m_ui.widgetConfigButton->layout())->addWidget(m_config->getShowHideButton(), 1, 1);
     connect(m_config, SIGNAL(showScene(bool)), this, SLOT(slotShowScene(bool)));
 
 
index 926a803fc1855ab5256c7ea6b93430929b043afd..4c38aec3f7014d0192ce67b4776c2c895d86b27f 100644 (file)
      </property>
     </widget>
    </item>
-   <item row="0" column="4" rowspan="5">
-    <spacer name="horizontalSpacer">
-     <property name="orientation">
-      <enum>Qt::Horizontal</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>40</width>
-       <height>20</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-   <item row="5" column="0" colspan="5">
+   <item row="5" column="0" colspan="7">
     <widget class="QFrame" name="frameConfig">
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>10</height>
-      </size>
-     </property>
      <property name="frameShape">
       <enum>QFrame::NoFrame</enum>
      </property>
      </property>
     </widget>
    </item>
-   <item row="6" column="0" colspan="5">
+   <item row="6" column="0" colspan="7">
     <spacer name="verticalSpacer">
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
     </spacer>
    </item>
+   <item row="0" column="4" rowspan="4" colspan="3">
+    <spacer name="horizontalSpacer">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>40</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="4" column="6">
+    <spacer name="horizontalSpacer_2">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>40</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="4" column="5">
+    <widget class="QWidget" name="widgetConfigButton" native="true"/>
+   </item>
   </layout>
  </widget>
  <resources/>
index 9c57f465c3abeca89bdbf1673f509c81773831ba..3127be739fbb8e8c149a137e8979c35b1a83be91 100644 (file)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>364</width>
-    <height>183</height>
+    <height>187</height>
    </rect>
   </property>
   <property name="windowTitle">
      </layout>
     </widget>
    </item>
-   <item row="1" column="2">
-    <spacer name="horizontalSpacer">
-     <property name="orientation">
-      <enum>Qt::Horizontal</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>40</width>
-       <height>20</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-   <item row="0" column="0" colspan="3">
+   <item row="0" column="0" colspan="4">
     <widget class="QWidget" name="widgetTimeWrapper" native="true">
      <layout class="QGridLayout" name="gridLayout_4">
       <property name="margin">
      </layout>
     </widget>
    </item>
-   <item row="1" column="0">
-    <widget class="QWidget" name="widgetFirstColumn" native="true">
+   <item row="3" column="0" colspan="4">
+    <spacer name="verticalSpacer_2">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="2" column="0" colspan="2">
+    <widget class="QFrame" name="frameSettings">
+     <property name="frameShape">
+      <enum>QFrame::NoFrame</enum>
+     </property>
+     <property name="frameShadow">
+      <enum>QFrame::Plain</enum>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="2">
+    <widget class="QWidget" name="widgetConfigButton" native="true">
      <layout class="QGridLayout" name="gridLayout_6">
       <property name="leftMargin">
        <number>0</number>
       <property name="spacing">
        <number>0</number>
       </property>
-      <item row="0" column="0" rowspan="2">
-       <spacer name="horizontalSpacer_2">
+      <item row="0" column="1">
+       <spacer name="verticalSpacer">
         <property name="orientation">
-         <enum>Qt::Horizontal</enum>
+         <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
-          <width>40</width>
-          <height>20</height>
+          <width>20</width>
+          <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
-      <item row="0" column="1">
-       <spacer name="verticalSpacer">
+      <item row="0" column="2">
+       <spacer name="horizontalSpacer_2">
         <property name="orientation">
-         <enum>Qt::Vertical</enum>
+         <enum>Qt::Horizontal</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
-          <width>20</width>
-          <height>40</height>
+          <width>40</width>
+          <height>20</height>
          </size>
         </property>
        </spacer>
      </layout>
     </widget>
    </item>
-   <item row="3" column="0" colspan="3">
-    <spacer name="verticalSpacer_2">
+   <item row="1" column="0">
+    <spacer name="horizontalSpacer">
      <property name="orientation">
-      <enum>Qt::Vertical</enum>
+      <enum>Qt::Horizontal</enum>
      </property>
      <property name="sizeHint" stdset="0">
       <size>
-       <width>20</width>
-       <height>40</height>
+       <width>40</width>
+       <height>20</height>
       </size>
      </property>
     </spacer>
    </item>
-   <item row="2" column="0" colspan="2">
-    <widget class="QFrame" name="frameSettings">
-     <property name="frameShape">
-      <enum>QFrame::NoFrame</enum>
-     </property>
-     <property name="frameShadow">
-      <enum>QFrame::Plain</enum>
-     </property>
-    </widget>
-   </item>
   </layout>
  </widget>
  <resources/>
index 57f1c7e6cd69cc1fcee2c15e6a41d321a30a35d8..64b1e88a7788dd855e1aa824df034583f6e66a80 100644 (file)
@@ -6,18 +6,21 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>340</width>
-    <height>114</height>
+    <width>332</width>
+    <height>80</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>Form</string>
   </property>
   <layout class="QGridLayout" name="gridLayout">
+   <property name="margin">
+    <number>0</number>
+   </property>
    <item row="0" column="2">
     <widget class="QGroupBox" name="groupBox">
      <property name="title">
-      <string>Settings</string>
+      <string/>
      </property>
      <property name="flat">
       <bool>true</bool>
@@ -26,6 +29,9 @@
       <bool>false</bool>
      </property>
      <layout class="QGridLayout" name="gridLayout_2">
+      <property name="margin">
+       <number>0</number>
+      </property>
       <item row="1" column="0">
        <widget class="QToolButton" name="buttonZoomFit">
         <property name="text">