Git: Remotedialog, replace QTableView with QTreeView

QTreeView is a better list view with columns than QTableView.
One special reason for this change is that QTreeView
finds a proper default row height regardless of the system
DPI.

Change-Id: I3342e2295a3782b480ea811bfe335e3a77482891
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2014-06-03 15:44:12 +02:00
parent bb4031dccf
commit 8173961e05
4 changed files with 29 additions and 20 deletions

View File

@@ -36,6 +36,7 @@
#include "ui_remotedialog.h"
#include "ui_remoteadditiondialog.h"
#include <utils/headerviewstretcher.h>
#include <vcsbase/vcsbaseoutputwindow.h>
#include <QMessageBox>
@@ -94,8 +95,7 @@ RemoteDialog::RemoteDialog(QWidget *parent) :
m_ui->setupUi(this);
m_ui->remoteView->setModel(m_remoteModel);
m_ui->remoteView->horizontalHeader()->setStretchLastSection(true);
m_ui->remoteView->horizontalHeader()->setResizeMode(0, QHeaderView::ResizeToContents);
new Utils::HeaderViewStretcher(m_ui->remoteView->header(), 1);
connect(m_ui->addButton, SIGNAL(clicked()), this, SLOT(addRemote()));
connect(m_ui->fetchButton, SIGNAL(clicked()), this, SLOT(fetchFromRemote()));