diff options
author | Alessandro Portale <alessandro.portale@digia.com> | 2014-05-02 16:49:43 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@digia.com> | 2014-05-05 14:25:07 +0200 |
commit | 7d40ce845e8d8ca738cf4399a1d17903c8e6fb96 (patch) | |
tree | d0928719e369d51f91ac1f06ae05285faf5cb29a /src/plugins/git/remotedialog.cpp | |
parent | e84b999ad8db64d47632f270f7cf78d5c607ea05 (diff) | |
download | qt-creator-7d40ce845e8d8ca738cf4399a1d17903c8e6fb96.tar.gz |
Remove QHeaderView::setDefaultSectionSize calls
Do not set the row height in pixels, since that
will break in High DPI situations. We do that for
some QTableViews, apparently as an obsolete
workaround.
QTableView does the right thing by default,
therefore we don't need to set that value at all.
Task-Number: QTCREATORBUG-11179
Change-Id: Id90f01316f8359207796a4060cb43b0aba93d441
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/git/remotedialog.cpp')
-rw-r--r-- | src/plugins/git/remotedialog.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/git/remotedialog.cpp b/src/plugins/git/remotedialog.cpp index 155a646f32..c22a176220 100644 --- a/src/plugins/git/remotedialog.cpp +++ b/src/plugins/git/remotedialog.cpp @@ -96,8 +96,6 @@ RemoteDialog::RemoteDialog(QWidget *parent) : m_ui->remoteView->setModel(m_remoteModel); m_ui->remoteView->horizontalHeader()->setStretchLastSection(true); m_ui->remoteView->horizontalHeader()->setResizeMode(0, QHeaderView::ResizeToContents); - QFontMetrics fm(font()); - m_ui->remoteView->verticalHeader()->setDefaultSectionSize(qMax(static_cast<int>(fm.height() * 1.2), fm.height() + 4)); connect(m_ui->addButton, SIGNAL(clicked()), this, SLOT(addRemote())); connect(m_ui->fetchButton, SIGNAL(clicked()), this, SLOT(fetchFromRemote())); |