From 01463e9bdf5c3e4691a64d611cd22a3fb8538aef Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Tue, 7 Jun 2011 10:33:28 +0200
Subject: [PATCH] Git: Shrink down remote dialog
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Task-number: QTCREATORBUG-5036
Change-Id: I9fc973acfb73c5da0489073a2130f5738656670d
Reviewed-on: http://codereview.qt.nokia.com/356
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
---
 src/plugins/git/remotedialog.cpp |  1 -
 src/plugins/git/remotedialog.ui  | 10 ++++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/plugins/git/remotedialog.cpp b/src/plugins/git/remotedialog.cpp
index b666abddaa4..1c388305f78 100644
--- a/src/plugins/git/remotedialog.cpp
+++ b/src/plugins/git/remotedialog.cpp
@@ -94,7 +94,6 @@ RemoteDialog::RemoteDialog(QWidget *parent) :
     m_ui->setupUi(this);
 
     m_ui->remoteView->setModel(m_remoteModel);
-    m_ui->remoteView->setMinimumHeight(400);
     m_ui->remoteView->horizontalHeader()->setStretchLastSection(true);
     m_ui->remoteView->horizontalHeader()->setResizeMode(0, QHeaderView::ResizeToContents);
     QFontMetrics fm(font());
diff --git a/src/plugins/git/remotedialog.ui b/src/plugins/git/remotedialog.ui
index bb52f12b1e6..deff9e629b7 100644
--- a/src/plugins/git/remotedialog.ui
+++ b/src/plugins/git/remotedialog.ui
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>514</width>
-    <height>527</height>
+    <width>507</width>
+    <height>329</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -63,6 +63,12 @@
       </property>
       <item>
        <widget class="QTableView" name="remoteView">
+        <property name="minimumSize">
+         <size>
+          <width>0</width>
+          <height>100</height>
+         </size>
+        </property>
         <property name="editTriggers">
          <set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed</set>
         </property>
-- 
GitLab