From 39b2c5aac6d32077847cb9f09233eea64b48f676 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Mon, 5 Feb 2018 09:21:45 -0500 Subject: [PATCH] Do not force the height of the color scheme editor window (widget) Allow the dialog to be usable on < 600 px windows; the removed code to force height makes no sense regardless. --- src/ColorSchemeEditor.cpp | 5 ----- src/ColorSchemeEditor.ui | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ColorSchemeEditor.cpp b/src/ColorSchemeEditor.cpp index 8ca3a51d..ecabd0fd 100644 --- a/src/ColorSchemeEditor.cpp +++ b/src/ColorSchemeEditor.cpp @@ -330,11 +330,6 @@ void ColorSchemeEditor::setupColorTable(const ColorScheme *colors) } // ensure that color names are as fully visible as possible _ui->colorTable->resizeColumnToContents(0); - - // set the widget height to the table content - _ui->colorTable->setFixedHeight( - _ui->colorTable->verticalHeader()->length() + _ui->colorTable->horizontalHeader()->height() - + 2); } ColorScheme &ColorSchemeEditor::colorScheme() const diff --git a/src/ColorSchemeEditor.ui b/src/ColorSchemeEditor.ui index 440a6b87..8a9eed37 100644 --- a/src/ColorSchemeEditor.ui +++ b/src/ColorSchemeEditor.ui @@ -7,7 +7,7 @@ 0 0 364 - 502 + 376