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.
wilder-portage
Kurt Hindenburg 8 years ago
parent b8a2f0cfd0
commit 39b2c5aac6
  1. 5
      src/ColorSchemeEditor.cpp
  2. 2
      src/ColorSchemeEditor.ui

@ -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

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>364</width>
<height>502</height>
<height>376</height>
</rect>
</property>
<layout class="QVBoxLayout">

Loading…
Cancel
Save