summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@digia.com>2014-05-02 16:49:43 +0200
committerAlessandro Portale <alessandro.portale@digia.com>2014-05-05 14:25:07 +0200
commit7d40ce845e8d8ca738cf4399a1d17903c8e6fb96 (patch)
treed0928719e369d51f91ac1f06ae05285faf5cb29a /src/plugins/texteditor
parente84b999ad8db64d47632f270f7cf78d5c607ea05 (diff)
downloadqt-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/texteditor')
-rw-r--r--src/plugins/texteditor/snippets/snippetssettingspage.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/texteditor/snippets/snippetssettingspage.cpp b/src/plugins/texteditor/snippets/snippetssettingspage.cpp
index d0b92d9581..5aeb842c8f 100644
--- a/src/plugins/texteditor/snippets/snippetssettingspage.cpp
+++ b/src/plugins/texteditor/snippets/snippetssettingspage.cpp
@@ -346,7 +346,6 @@ void SnippetsSettingsPagePrivate::configureUi(QWidget *w)
m_ui.snippetsTable->horizontalHeader()->setStretchLastSection(true);
m_ui.snippetsTable->horizontalHeader()->setHighlightSections(false);
m_ui.snippetsTable->verticalHeader()->setVisible(false);
- m_ui.snippetsTable->verticalHeader()->setDefaultSectionSize(20);
m_ui.snippetsTable->setModel(m_model);
m_ui.revertButton->setEnabled(false);